matrix (table)

matrix (table) - How to add matrix element - Сообщения

#1 Опубликовано: 28.09.2021 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 Опубликовано: 28.09.2021 08:14:15
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 28.09.2021 08:37:33
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 28.09.2021 09:17:41
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

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

Matrix Advanced.PNG
#5 Опубликовано: 28.09.2021 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 Опубликовано: 28.09.2021 11:15:31
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 28.09.2021 13:28:22
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 28.09.2021 16:21:01
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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 КиБ) скачан 40 раз(а).

Clipboard01.jpg

Best regards.
Alvaro
2 пользователям понравился этот пост
sergio 28.09.2021 17:24:00, fedeghi 29.09.2021 03:24:00
#9 Опубликовано: 30.09.2021 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 Опубликовано: 30.09.2021 07:53:25
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 43 раз(а).

#11 Опубликовано: 30.09.2021 13:37:31
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений