我想从excel文件中读取文本和数字。当我写下面的代码时,它不能从excel文件中读取文本数据。我怎么才能修复它?感谢您的宝贵时间。
data = xlsread('normalize.xlsx');excel文件的图片如下:

and the picture of data that created from the code is hear: 
发布于 2017-07-07 21:01:07
‘'xlsread’和'csvread‘都是用于在MATLAB中读取数值数据。如果您在Windows平台上并安装了Microsoft Excel,您可以使用以下语法和'xlsread‘将您的数据读取到两个单元格阵列中:
[num_data string_data] = xlsread('normalize.xlsx');您将在string_data数组中的数据中包含text列。num_data中的相应列仍将具有NAN。
https://stackoverflow.com/questions/44965964
复制相似问题