HP Forums

Full Version: Matix form "input" call
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to open from a program the Matrix Form (key "c") and introduce the elements/numbers you want interactively ?
Then resume the program steps; like assigning this matrix to a variable ...
Can "INPUT" do the job, how?

Can you help me?

Toni G
(10-21-2020 01:41 PM)Tonig00 Wrote: [ -> ]Is it possible to open from a program the Matrix Form (key "c") and introduce the elements/numbers you want interactively ?
Then resume the program steps; like assigning this matrix to a variable ...
Can "INPUT" do the job, how?

Can you help me?

Toni G

Hi Toni,
I think your solution resides in using the EDITMAT function :

Code:

EXPORT CREATEMAT()
BEGIN
 LOCAL mat, tmat;
 mat := MAKEMAT(0, 2, 2); // example
 mat := EDITMAT(mat); // this is what you're looking for
 tmat := TRN(mat); // transpose the created matrix
 RETURN { mat, tmat }; // return both matrix
END;
Perfect, it works.
Thanks very very much

Toni
Reference URL's