MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   从Excel将字符串读取到Matlab中? (https://www.labfans.com/bbs/showthread.php?t=23572)

poster 2019-12-10 20:41

从Excel将字符串读取到Matlab中?
 
我想从Excel文件中将字符串读取到Matlab中

ID = xlsread('data.xlsx',1, 'D2:D4') D2:D4范围内的单元格中包含字符串。当我尝试将字符串导入Matlab时,我得到的只是一个空列表?我该怎么做才能解决此问题?



[B]回答:[/B]

如果您使用的是Matlab 2010,则还可以执行类似的操作,以避免在工作区中产生额外的值。

[~, ~, raw] = xlsread('data.xlsx',1, 'D2:D4')

[url=https://stackoverflow.com/questions/3104473]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:13

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.