When I execute the following commands:
s=sparse(eye(5,5));dlmwrite('mydata.dat',s);
I receive the following result:
??? Error using ==> sprintf Function is not defined for sparse inputs. Error in ==> dlmwrite at 172 str = sprintf(format,m(i,:));
However, the above commands works without errors in MATLAB 6.5.1 (R13SP1) and a file 'mydata.dat' is created.
Best Answer