从excel读取Matlab中的字符串? [英] Reading strings into Matlab from excel?
本文介绍了从excel读取Matlab中的字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从excel文件中读取Matlab中的字符串
I would like to read strings into Matlab from an excel file
ID = xlsread('data.xlsx',1, 'D2:D4')
范围D2:D4中的单元格中包含字符串。当我尝试将字符串导入Matlab时,我得到的是一个空列表?我可以做些什么来解决这个问题?
the cells in range D2:D4 have strings in them. When I try to import the strings into Matlab all I get is an empty list? what can I do to fix this?
推荐答案
如果你在Matlab 2010中,你也可以这样做,
If you're in Matlab 2010 you can also do something like this to avoid having extra values in your workspace.
[~, ~, raw] = xlsread('data.xlsx',1, 'D2:D4')
这篇关于从excel读取Matlab中的字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文