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

 採用された回答

Guillaume
Guillaume 2014 年 12 月 4 日
編集済み: Guillaume 2014 年 12 月 4 日

1 投票

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

1 件のコメント

Neesha
Neesha 2014 年 12 月 4 日
ok, will try that, thanks !

サインインしてコメントする。

その他の回答 (0 件)

タグ

質問済み:

2014 年 12 月 4 日

編集済み:

2014 年 12 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by