write zero as blank

1 visualizzazione (ultimi 30 giorni)
Neesha
Neesha il 4 Dic 2014
Modificato: Guillaume il 4 Dic 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

Risposta accettata

Guillaume
Guillaume il 4 Dic 2014
Modificato: Guillaume il 4 Dic 2014
c = num2cell(m);
c(m == 0) = {[]};
xlswrite('somefile.xlsx', c);

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by