How to write excel-file correctly?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, i'm attempting to create an excel-file which contains the information of a cell array i created.
sheet = 1;
xlRange = lot;
A=chain;
xlswrite(filename,A,sheet,xlRange)
It's possible to open the file, the aimed cells are highlighted but empty. Also i dont get back a 1 or 0 as a status for the writing operation. Does anyone have a clue how to fix this? (The cell array 'chain' is not empty.)
Thanks in advance.
3 件のコメント
回答 (1 件)
Jan
2017 年 10 月 9 日
The problem was solved in the comments already. Now as an answer:
A =
{1x1 cell} {1x1 cell} {1x1 cell}
The contents of A must be strings or scalar numbers:
A = {'hello', 9}
Providing a cell of cells does not work. What a pity, that XLSWRITE does not provide a meaningful error message.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!