Post Reply 
Matrix to Vector
04-15-2023, 10:04 AM (This post was last modified: 04-15-2023 01:50 PM by Amer7.)
Post: #3
RE: Matrix to Vector
(04-14-2023 12:20 PM)Joe Horn Wrote:  Use the REDIM command. E.g. REDIM( [[ 11,22,33 ]] , 3) yields [ 1,2,3 ]. See the built-in Help screen for more info about REDIM.

Thank you very much it works perfectly

Basically

If I want exp. Matrix M57 to be a vector ie. 1x1

REDIM(57,1);

Example:
Local M11,M57;

M11:=M1xM2;
M57:=REDIM(M11,1);
EDITMAT(M57, "vector matrix value is this");

Just a precaution
If you were to Multiply this REDIM(57) "vector" and you get like invalid size, input error etc. Do it like M1*M57(1);

Works like aCharm,
Thank you!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Matrix to Vector - Amer7 - 04-14-2023, 10:11 AM
RE: Matrix to Vector - Joe Horn - 04-14-2023, 12:20 PM
RE: Matrix to Vector - Amer7 - 04-15-2023 10:04 AM



User(s) browsing this thread: 2 Guest(s)