The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





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
Post Reply 


Messages In This Thread
Matrix Colum names - Amer7 - 06-25-2023 12:39 AM
RE: Matrix Colum names - Tyann - 06-25-2023, 09:27 AM
RE: Matrix Colum names - Amer7 - 06-25-2023, 03:36 PM



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