How to save a matrix a octave-like format.




On Sat, 21 Nov 2009, fbchaos wrote:

< Hello,
< 
< I want to store a matrix in a file in a octave-like format,so as to make
< it convenient to manipulate using gnuplot.
< For example, save matrix([1,2],[3,4]) as:
< 1 2
< 3 4
< 
< I know when using plot2d,the points to be ploted is saved in
< maxout.gnuplot_pipes in that format.But I don't know how
< that is done.
< Could anyone tell me how to do this?


Look at 

? write_data

This function does what you want.

Leo

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.