Printing Matrix from program
|
10-09-2020, 02:52 AM
(This post was last modified: 10-09-2020 02:54 AM by Grayhek.)
Post: #1
|
|||
|
|||
Printing Matrix from program
I am currently having issues printing my matrix from my program. I made a matrix to hold tabulated steam data and while testing how its working I get an error. I dont understand very much as I tend to not use Matrices as much. I've tried: "Print(ST());", "Print(ST(1,1));", Print(ST{});", "Print(ST[]);", "Print(ST[1,1]);" and a few other things but I can't seem to get it to work.
Code: //Steam Table |
|||
10-09-2020, 04:52 AM
Post: #2
|
|||
|
|||
RE: Printing Matrix from program
Bonjour
L'aide intégrée dit que PRINT affiche une expression ou une chaîne de caractères, pour afficher une matrice utilisez EDITMAT. Hello The built-in help says that PRINT displays an expression or string, to display a matrix use EDITMAT. Sorry for my english |
|||
10-09-2020, 11:17 AM
Post: #3
|
|||
|
|||
RE: Printing Matrix from program
(10-09-2020 04:52 AM)Tyann Wrote: Bonjour So I have never used the EDITMAT function before. I looked it up on the help to figure out how it works but am not sure and it did not print. Je n'ai donc jamais utilisé la fonction EDITMAT auparavant. J'ai utilisé la fonction 'help' pour comprendre comment cela fonctionne mais je ne suis pas sûr et il ne s'est pas imprimé. |
|||
10-09-2020, 12:26 PM
Post: #4
|
|||
|
|||
RE: Printing Matrix from program
This is my current work-around. Since it wont let me print a matrix or really use a matrix I transposed it and made 3 lists for each row. This also helped me because I dont know how to call a column like you would a row. Since they are now in lists I can use the drop-down function in input to choose my desired Tempurature.
Code:
I still wish I could use a matrix instead of multiple lists. If anyone can help it would be much appreciated. |
|||
10-10-2020, 02:36 AM
Post: #5
|
|||
|
|||
RE: Printing Matrix from program
Matrix are mathematical objects, you’re not allowed to insert strings.
Once the strings removed you should be able to use EDITMAT. Unfortunately the “title” or the {“title”, { “title row”...}, {“title col”}} does not seem to work, but the Boolean flag ‘readonly’ works well. Code:
Using EDITLIST doesn’t work on list of lists, and the “title” is also ignored, or I missed something to use it. Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co |
|||
12-15-2024, 07:03 PM
Post: #6
|
|||
|
|||
RE: Printing Matrix from program
Hi,
Try looking up some of my topics. You might find what you need, thanks to the forum users. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)