Hi All,
I am priniting my matrix to excel file using xlswrite. I want to write out my zero as blanks/space
how do i do it?
Thanks

 Accepted Answer

Guillaume
Guillaume on 4 Dec 2014
Edited: Guillaume on 4 Dec 2014
c = num2cell(m);
c(m == 0) = {[]};
xlswrite('somefile.xlsx', c);

More Answers (0)

Asked:

on 4 Dec 2014

Edited:

on 4 Dec 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!