write zero as blank

1 Ansicht (letzte 30 Tage)
Neesha
Neesha am 4 Dez. 2014
Bearbeitet: Guillaume am 4 Dez. 2014
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

Akzeptierte Antwort

Guillaume
Guillaume am 4 Dez. 2014
Bearbeitet: Guillaume am 4 Dez. 2014
c = num2cell(m);
c(m == 0) = {[]};
xlswrite('somefile.xlsx', c);
  1 Kommentar
Neesha
Neesha am 4 Dez. 2014
ok, will try that, thanks !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by