Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Matlab 的新手,我想以矩阵格式导入 Excel 文件。我的列都是数字,除了最后一列,它是一个字符串,它是我的标签。当我导入我的数据集时,Matlab 说标签列不可导入并将其替换为零!我该怎么办?
请使用以下代码:
[num, txt, raw] = xlsread(excelpath, sheetname, A00:C20)
除了路径、工作表名和 A00:C20 是任意的。您可以在原始变量中找到包含指定单元格中所有项目的表格。num包含数值,txt包含字符串值。