How to avoid line breaks when writing a matrix to a file?
Posted: Fri Feb 22, 2013 6:47 am
When using the following code to write a large matrix to a text file, I have the problem that RATS makes several line breaks for each row of the matrix. (Similar to what RATS also does when displaying a large array in the output file on the screen.)
Is there any way to avoid these line breaks?
Code: Select all
decl rec G
comp G = %zeros(200,200)
open copy Gmat.txt
display(unit=copy) G
close copy