How to save a matrix a octave-like format.



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?