strings and numbers from excel
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I need to read table from excel. This table are filled with numers and strings and some cells are empty. Is there easy way to read such table in one matrix? Because now matlab just creates to matrices: one with strings and another with numbers and NaN's where strings used to be.
Thanks in advance.
0 件のコメント
採用された回答
Fangjun Jiang
2011 年 5 月 24 日
Use the third returning argument of xlsread()
[NUMERIC,TXT,RAW]=XLSREAD(FILE)
I always prefer this way because then I can process the RAW information as I need. Some helpful functions are, isnan(), isnumeric()
0 件のコメント
その他の回答 (1 件)
the cyclist
2011 年 5 月 24 日
I have used the following entry from the File Exchange with success:
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!