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

1 Stimme

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

Weitere Antworten (0)

Gefragt:

am 4 Dez. 2014

Bearbeitet:

am 4 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by