필터 지우기
필터 지우기

write zero as blank

조회 수: 1 (최근 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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by