Matrix size defined by variables

Matrix size defined by variables - Сообщения

#1 Опубликовано: 23.03.2018 11:30:17
Rens

Rens

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

Группа: User

Does anyone know if it is possible to define a variable which will determine the size of a matrix. From where on the created matrix is again an input and not an output.

For exaple:

n:=1 (number of rows)
m:=3 (number of koloms)

creates a matrix of 1 kolom and 3 rows as below

y:= [* * *]

where the '*' are emty and can be spicified by the user.

Beste regards,
Rens Servais
#2 Опубликовано: 23.03.2018 11:57:07
Arie

Arie

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

Группа: User

Check out this example.

Matrix.sm (7 КиБ) скачан 65 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Опубликовано: 23.03.2018 12:34:01
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Does anyone know if it is possible to define a variable which will determine the size of a matrix.



Both ways: empty and '0'

MyMatrix.PNG
#4 Опубликовано: 23.03.2018 15:18:56
CBG

CBG

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

Группа: User

Other solution

Init_Matrix.png


Best Regards

Carlos
#5 Опубликовано: 24.03.2018 04:47:24
Rens

Rens

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

Группа: User

Wrote

Wrote

Does anyone know if it is possible to define a variable which will determine the size of a matrix.



Both ways: empty and '0'

MyMatrix.PNG





Thanks Jean Giraud,

Your solution suits the best for me, but I can not reproduce it. See below. What do I do wrong?

Beste regards,
Rens

Matrix.sm (31 КиБ) скачан 39 раз(а).
#6 Опубликовано: 24.03.2018 07:13:25
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

I can not reproduce it



Do one of the following:
  • press CTRL+M
  • write mat(
  • write mat and press the tabulation key
  • on the right side of the windows, click on the first element of the Matrices toolbox
    2018-03-24 11_04_19-SMath Studio - [Page1_].png
  • use the function dialog (press CTRL+E or choose the Insert > Function menu item or click on the fx symbol from the toolbar) choose the Matrix and vector group and search mat (click on whatever item and press m), then double click it or click on the insert button
    Файл не найден. Файл не найден.
    2018-03-24 11_13_08-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 пользователям понравился этот пост
Andrey Ivashov 24.03.2018 07:39:00, frapuano 24.03.2018 08:58:00
#7 Опубликовано: 25.03.2018 23:10:14
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Your solution suits the best for me, but I can not reproduce it



That will work for you. At this point, you can address any element.
The empty matrix has almost no use.

MatrixUtility.PNG
#8 Опубликовано: 25.03.2018 23:28:48
Jean Giraud

Jean Giraud

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

Группа: User

Plenty of matrix manipulation in there.
There are more and more, that should help.

Utilities Matrix Treasury_2 Copy.sm (109 КиБ) скачан 66 раз(а).
Utilities Matrix Treasury_0 Copy.sm (376 КиБ) скачан 64 раз(а).
Utilities Matrix Treasury_1 Copy.sm (372 КиБ) скачан 58 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений