Skip to content
Prev 378254 / 398502 Next

Printing a list of simultaneous equations

Don't use the default print method then. When you type an expression alone at the console it uses a print function to convert the result to characters for output. The default print method for matrices of character uses quotes to show the exact contents of each character string.

Convert the matrix to a single string using  paste for each line, then paste the lines together with newlines, then cat the string to the console. You will probably find that converting the individual elements into strings with uniform string length (using sprintf?) as you add them into the matrix makes the final output look better.
On January 18, 2019 4:02:09 AM PST, "Sorkin, John" <jsorkin at som.umaryland.edu> wrote: