HP Forums
Matrix Colum names - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Matrix Colum names (/thread-20115.html)



Matrix Colum names - Amer7 - 06-25-2023 12:39 AM

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/hp-prime-renaming-headers-in-statistic.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 ?
[attachment=12259]


RE: Matrix Colum names - Tyann - 06-25-2023 09:27 AM

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.


RE: Matrix Colum names - Amer7 - 06-25-2023 03:36 PM

(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!