Post Reply 
Matrix Colum names
06-25-2023, 12:39 AM (This post was last modified: 06-25-2023 12:50 AM by Amer7.)
Post: #1
Matrix Colum names
Is it possible to rename matrix colum, row names. Like instead of 1,2,3,4 to put text?
Something like in this topic
http://edspi31415.blogspot.com/2019/01/h...istic.html

I've tried for a matrix but can't get it to work

Also I'm having some issues with calculator, after I've added programs, and now have many export matrices sometimes when i list matrices calculator crashes and I loose all of my data

Any tips, or how to do it differently
basically my program is this

Code:
EXPORT numbers()

BEGIN
LOCAL n1,i,j,c,b;
INPUT({n1},"numbers", {"number"});

i:=1;
j:=1;
b:=n1-1;
c:=n1;
//loop directional
WHILE i<=c DO
M0(i+1,2):=M0(i,2)+M0(i+1,1);

//Directional angle
WHILE M0(i+1,2)>360 DO
M0(i+1,2):=M0(i+1,2)-360;
END;
IF M0(i+1,2)>=180 THEN
M0(i+1,2):=M0(i+1,2)-180
ELSE 
M0(i+1,2):=M0(i+1,2)+180;
END;

M0(i+1,4):=M0(i+1,3)*SIN(M0(i+1,2));
M0(i+1,5):=M0(i+1,3)*COS(M0(i+1,2));
M0(i+1,6):=M0(i,6)+M0(i+1,4);
M0(i+1,7):=M0(i,7)+M0(i+1,5);

i:=i+1;

END;





// End of loop

// coordinate difference

EDITMAT(M0,"m0-mat");




END;

I pre input data in M0 matrix, I input angles and length, then I run program to calculate the rest.
I'm using the matrix, because It reminds me on the actual form.
Basically the program is for
Any tips ?
   
Find all posts by this user
Quote this message in a reply
06-25-2023, 09:27 AM
Post: #2
RE: Matrix Colum names
Bonjour
Vous pouvez définir des en-têtes aux lignes et colonnes avec la synthaxe suivante :
EDITMAT(mat,{"Titre",{"titre ligne1",.....},{"titre colonne1",.......}});
Cela fonctionne pour moi

Hello
You can define row and column headers using the following syntax:
EDITMAT(mat,{"Title",{"row1 title",.....},{"column1 title",.......}});
This works for me.

Sorry for my english
Find all posts by this user
Quote this message in a reply
06-25-2023, 03:36 PM
Post: #3
RE: Matrix Colum names
(06-25-2023 09:27 AM)Tyann Wrote:  Bonjour
Vous pouvez définir des en-têtes aux lignes et colonnes avec la synthaxe suivante :
EDITMAT(mat,{"Titre",{"titre ligne1",.....},{"titre colonne1",.......}});
Cela fonctionne pour moi

Hello
You can define row and column headers using the following syntax:
EDITMAT(mat,{"Title",{"row1 title",.....},{"column1 title",.......}});
This works for me.

Hello, merci
It works perfectly!
Thank you!
Find all posts by this user
Quote this message in a reply
Post Reply 




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