matthew jones wrote:
erm, saving that way will create binary MAT files. so you will need to save it using 'save tester.mtx my_matrix -ascii', then open it up in a text editor (eg. notepad) and manually append a line (I mean put this following line as the first line in the file):
matrix n m
where n is the number of columns and m is the number of rows (at least, from a rudimentary check, Matlab and zexy seem to order the row/column numbers the opposite way around, though I may well be wrong).
Something like that, anyway.
It should be pretty trivial to write a function in matlab that can do all this automatically including transposing the matrix if necessary.
Jonny www.jeremah.co.uk