Read Excel sheet into a structure array:Read Excel sheet into a structure array-matlab开发

时间:2021-05-30 07:08:24
【文件属性】:
文件名称:Read Excel sheet into a structure array:Read Excel sheet into a structure array-matlab开发
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-30 07:08:24
matlab % outstruct=xls2struct(xlsFName,sheetnum) % 该函数读取输入 Excel 文件('xlsFName')的'sheetnum'表并将其转换为% 1x1 结构数组 'outstruct' 包含列字段。 % 输出结构中的每个字段都包含% 输入 Excel 工作表中的相应列。 % 输入的 Excel 工作表必须包含一个标题行作为第一行,其中% 将作为输出结构的字段名称。 % 'sheetnum' : 输入 Excel 文件中的工作表编号% 读取数据。 默认值 = 1 % 例子: % xls2struct('text.xlsx'); % % 另见“WriteXlsFromStruct.m”
【文件预览】:
xls2struct.zip
xls2struct.mltbx

网友评论