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

 Réponse acceptée

Guillaume
Guillaume le 4 Déc 2014
Modifié(e) : Guillaume le 4 Déc 2014

1 vote

c = num2cell(m);
c(m == 0) = {[]};
xlswrite('somefile.xlsx', c);

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by