Using xlswrite with cell array containing strings and numbers
3 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
How could I use xlswrite to write my (n x 3) cell array into an excel spreadsheet? Xlswrite is only compatible with arrays, and at face value converting cells to arrays doesn't seem to difficult. However, my major problem is that my string values have different lengths, which will create a dimensional error if I try to move all of data into one large array.
My data looks something like this:
[5] ['fadfafdas'] ['safdafas']
[24] ['dfd'] ['dds'] ...
Where string-cells in the same row are of equal lengths. Any ideas of how I can write this data into an excel file?
Thanks!
0 件のコメント
回答 (2 件)
Andrei Bobrov
2012 年 10 月 8 日
A = {[5] ['fadfafdas'] ['safdafas']
[24] ['dfd'] ['dds']}
xlswrite('yourxlsfile.xlsx',A)
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!