matrix (table)

matrix (table) - How to add matrix element - 消息

#1 已发布: 2021/9/28 07:57:09
Adam Puczyński

Adam Puczyński

0个赞,共4个帖子。

组: User

I'm newbee, sorry. I have problem. Help me?
How to add specific element of matrix or table to calculations?
#2 已发布: 2021/9/28 08:14:15
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

How to add specific element of matrix or table to calculations?


If you have your matrix from calculation,
simply address the element(s) with new value.
Cheers ... Jean
#3 已发布: 2021/9/28 08:37:33
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

2021-09-28 13_37_13-SMath Solver - [Worksheet1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 已发布: 2021/9/28 09:17:41
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... observe the empty place holder is a / operator.

Matrix Advanced.PNG
#5 已发布: 2021/9/28 10:00:40
Adam Puczyński

Adam Puczyński

0个赞,共4个帖子。

组: User

Thank You Jean, but rather, I meant to extract a specific element from the matrix. Sorry but my English is very poor.
Adam
#6 已发布: 2021/9/28 11:15:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Thank You Jean, but rather, I meant to extract a specific element from the matrix.


There are many more ways ... like skinning a cat.
Cheers ... Jean.

Matrix Extract.PNG

#7 已发布: 2021/9/28 13:28:22
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

Thank You Jean, but rather, I meant to extract a specific element from the matrix. Sorry but my English is very poor.
Adam



You can press [ when a variable is selected to write in the worksheet a "vector element" placeholder to access an element of a vector/matrix.

Indices are "base 1", therefore any value from 1 to the number of elements is accepted.

A single placeholder in matrices reads the values by linear indexing that is reading each element of a row before going to the next one).

You can add a second placeholder for accessing rows and columns coordinates by typing an argument separator (usually a comma or a semicolon) when the first placeholder is selected.


[ is a shortcut for the function el(1), so it is possible to create the same thing with the following sequence

write el
press TAB KEY
write matrix name
press RIGHT ARROW KEY
write 1st index number or name
[optional]
press ARGUMENT SEPARATOR KEY
write 2nd index number or name
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 已发布: 2021/9/28 16:21:01
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. There are many different ways to access the elements of an array. This list is not exhaustive, and does not include the submatrix function.

M.sm (10.01 KiB)已下载 1234 次。

Clipboard01.jpg

Best regards.
Alvaro
2位用户喜欢此帖子
sergio 2021/9/28 17:24:00, fedeghi 2021/9/29 03:24:00
#9 已发布: 2021/9/30 06:22:06
Adam Puczyński

Adam Puczyński

0个赞,共4个帖子。

组: User

Hay everybody.
Thank you so much, especially for the examples (Jean, Davide, Razonar). It brightened up a lot of problems for me regarding matrices. Once again, thank you very much. One more thing, how do you write the range of elements in an array? Regards Adam
#10 已发布: 2021/9/30 07:53:25
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

One more thing, how do you write the range of elements in an array? Regards Adam


Your question is not clear w/o an example.
If not confidential, please attach the document.
Attached, a typical example @ the red arrow.
Cheers ... Jean.

2D Plot Multitrace [Gaussian] QUICK.sm (26.2 KiB)已下载 1085 次。

#11 已发布: 2021/9/30 13:37:31
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

... One more thing, how do you write the range of elements in an array? Regards Adam



Use vector element

Clipboard05.jpg

or matrix element

Clipboard07.jpg

and then put a range (with 2 or 3 arguments) in the index placeholder

Clipboard08.jpg

Best regards.
Alvaro.
  • 有新帖
  • 无新帖