cannot read/write sparse matrices to matlab v4

Daniel Heiserer danielheiserer at yahoo.com
Mon Jul 7 03:32:58 CDT 2008


Hi,

the read and write of sparse matrices to v4 matlab does not work:

octave:5> tic;load C4.mat;toc
error: load: can't read sparse matrices


When writing is tried, it seems octave will internally create a full matrix before writing it to the v4 file. This will explode once the matrix is too large:


N=1E7;C=sparse(ceil(N*rand(N,1)),ceil(N*rand(N,1)),rand(N,1),N,N);
save -v4 C4.mat C


octave version was:

octave:5> version
ans = 3.0.0


best regards, daniel 


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com



More information about the Bug-octave mailing list