Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Rens Servais  
#1 Posted : 23 March 2018 17:30:17(UTC)
Rens Servais

Rank: Newbie

Groups: Registered
Joined: 21/03/2018(UTC)
Posts: 4
Netherlands
Location: Rosmalen

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

Edited by user 23 March 2018 17:32:00(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline alyles  
#2 Posted : 23 March 2018 17:57:07(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
Check out this example.

Matrix.sm (8kb) downloaded 39 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#3 Posted : 23 March 2018 18:34:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Rens Servais Go to Quoted Post
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
Offline CBG  
#4 Posted : 23 March 2018 21:18:56(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Other solution

Init_Matrix.png


Best Regards

Carlos
Offline Rens Servais  
#5 Posted : 24 March 2018 10:47:24(UTC)
Rens Servais

Rank: Newbie

Groups: Registered
Joined: 21/03/2018(UTC)
Posts: 4
Netherlands
Location: Rosmalen

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: Rens Servais Go to Quoted Post
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 (32kb) downloaded 17 time(s).
Offline Davide Carpi  
#6 Posted : 24 March 2018 13:13:25(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Originally Posted by: Rens Servais Go to Quoted Post
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_08_44-SMath Studio - [Page1_].png 2018-03-24 11_10_53-SMath Studio - [Page1_].png
    2018-03-24 11_13_08-SMath Studio - [Page1_].png

Edited by user 24 March 2018 16:07:18(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 24/03/2018(UTC),  on 24/03/2018(UTC)
Offline Jean Giraud  
#7 Posted : 26 March 2018 05:10:14(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Rens Servais Go to Quoted Post
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
Offline Jean Giraud  
#8 Posted : 26 March 2018 05:28:48(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Plenty of matrix manipulation in there.
There are more and more, that should help.

Utilities Matrix Treasury_2 Copy.sm (110kb) downloaded 40 time(s).
Utilities Matrix Treasury_0 Copy.sm (377kb) downloaded 41 time(s).
Utilities Matrix Treasury_1 Copy.sm (373kb) downloaded 37 time(s).
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.