Why can't JNK handle more than 128 columns? oops i mean JMP.
My script:
PrintMatrix(Index(1, 129))
Log output:
Matrix has too many columns in access or evaluation of 'Print Matrix' , Bad Argument( Index( 1, 129 ) ), Print Matrix/*###*/(Index( 1, 129 ))
In the following script, error marked by /*###*/
Print Matrix/*###*/(Index( 1, 129 ))
I like the ability of the PrintMatrix function to format a matrix into a string so i can write it to a file. My actual use case is a matrix with the same number of rows and columns -- just showing a simple example here.
Update:
Thanks for the good suggestions, but to expand on my use case:
I have a 1024x1024 pixel image kind of like this:
image_mat = Shape(Index(1, 1024^2), 1024, 1024);
and with this simple one liner, i have tabs in between each intensity value AND a linefeed character instead of a tab after the last value of each row:
printed_mat_for_save = PrintMatrix(image_mat, <<style( "other" ), <<line begin( "" ), <<line end( "" ), <<separate( "\!t" ));
And then I can write everything i need, including some headers, in another one liner.
SaveTextFile(name_of_savefile, Concat(header_for_save, "\!n", printed_mat_for_save )
Perhaps there are some alternatives to looping through a million values to char it and add a tab except for the last col of a row which gets a linefeed?