Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to get Matlab read my char file in excel?
1 次查看(过去 30 天)
显示 更早的评论
I have a list of char in my excel file.
I want to import to my matlab like below:
I had tried below
y=csvread('test10042019.csv');
x=dlmread('test10042019_char.csv');
But is not working
>> x=dlmread('test10042019_char.csv',' ', 1,0);
Error using dlmread (line 143)
Mismatch between file and format string.
Trouble reading 'Numeric' field from file (row number 1, field
number 1) ==> ,\n
THank you.
1 个评论
回答(1 个)
Alex Mcaulley
2019-4-10
Is this that you want?
[~,text,~] = xlsread(filename);
text = char(text);
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!