I have an excel file containing text and numbers, xlsread not import the columns containing text. what should I do?
3 ビュー (過去 30 日間)
古いコメントを表示
I have an excel file containing text and numbers, xlsread not import the columns containing text. what should I do?
0 件のコメント
回答 (2 件)
Michael Haderlein
2015 年 2 月 3 日
It does, it just returns it in another parameter. From Matlab help:
[ndata, text, alldata] = xlsread('myExample.xlsx')
ndata =
1 2 3
4 5 NaN
7 8 9
text =
'First' 'Second' 'Third'
'' '' ''
'' '' 'x'
alldata =
'First' 'Second' 'Third'
[ 1] [ 2] [ 3]
[ 4] [ 5] 'x'
[ 7] [ 8] [ 9]
(<http://www.mathworks.com/help/matlab/ref/xlsread.html>)
Best regards,
Michael
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!