error in xls2struct loading excell file
显示 更早的评论
Hi,
I received an error trying to read my excell file parameters using a script. I don't think the problem is in the code because i used this script several times without any problems. But i don't know where to look for. I already used an excell file that worked last time, i closed all the excell processes, but i seems not to work. Do you have any suggestions how to resolve it?
matlab gives following error: Undefined function or variable 'xls2struct'.
the script is:
%loading excel file selected
[filename, pathname] = uigetfile({'*.xlsx','script XLSX file (*.xlsx)'});
pathx=[pathname filename];
disp('reading script parameters...');
%reading excel file parameters
[dx,nome_file,ext] = fileparts(pathx);
xls_data=xls2struct(pathx,'data'); %read data sheet
thanks a lot! greetings Nele
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!