how to read xls file with char value?
10 次查看(过去 30 天)
显示 更早的评论
after using xlsread function,Only numerical output variable but Character variable can not be read pleas guide me.
0 个评论
采纳的回答
Star Strider
2016-10-27
Use xlsread with at least two outputs:
[num,str] = xlsread(filename);
1 个评论
Walter Roberson
2016-10-27
I have found that pretty much every time that I need strings from a .xls or .xlsx file, that I need to use the third output from xlsread, the "raw" output. -- otherwise it gets too messy to try to figure out which numbers correspond to which strings, in my experience.
更多回答(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!