write zero as blank

2 ビュー (過去 30 日間)
Neesha
Neesha 2014 年 12 月 4 日
編集済み: Guillaume 2014 年 12 月 4 日
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 日
c = num2cell(m);
c(m == 0) = {[]};
xlswrite('somefile.xlsx', c);
  1 件のコメント
Neesha
Neesha 2014 年 12 月 4 日
ok, will try that, thanks !

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by