HP Forums
Matix form "input" call - 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: Matix form "input" call (/thread-15765.html)



Matix form "input" call - Tonig00 - 10-21-2020 01:41 PM

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


RE: Matix form "input" call - pinkman - 10-21-2020 02:44 PM

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



RE: Matix form "input" call - Tonig00 - 10-21-2020 07:37 PM

Perfect, it works.
Thanks very very much

Toni