matrix (table)

matrix (table) - How to add matrix element - Mensajes

#1 Publicado: 28/9/2021 7:57:09
Adam Puczyński

Adam Puczyński

0 me gusta en 4 mensajes.

Grupo: User

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 28/9/2021 8:37:33
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 28/9/2021 9:17:41
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

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

Adam Puczyński

0 me gusta en 4 mensajes.

Grupo: 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 Publicado: 28/9/2021 11:15:31
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 28/9/2021 13:28:22
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 28/9/2021 16:21:01
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1220 vez(es).

Clipboard01.jpg

Best regards.
Alvaro
A 2 usuarios les gustó este mensaje
sergio 28/9/2021 17:24:00, fedeghi 29/9/2021 3:24:00
#9 Publicado: 30/9/2021 6:22:06
Adam Puczyński

Adam Puczyński

0 me gusta en 4 mensajes.

Grupo: 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 Publicado: 30/9/2021 7:53:25
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1071 vez(es).

#11 Publicado: 30/9/2021 13:37:31
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.
  • Nuevos mensajes
  • Sin mensajes nuevos