matlab gui to exe error(i cannot load excel file)
1 次查看(过去 30 天)
显示 更早的评论
i can not load excel file in exe file only
in matlab gui it works properly
here is my code.
%
[fileName,pathName]=uigetfile('*.xls','Select your file'); %온도 레코더
handles.fileName=[fileName,pathName];
[~,txt,~]=xlsread(fileName,'C27:C30000');
[Ch1,~,~]=xlsread(fileName,'E27:E30000');
%
4 个评论
Walter Roberson
2019-1-6
[fileName, pathName] = uigetfile('*.xls','Select your file'); %온도 레코더
if ~ischar(fileName)
error('User cancel file selection');
end
handles.fileName = fullfile(pathName, fileName);
[~,txt,~] = xlsread(handles.fileName, 'C27:C30000');
[Ch1,~,~] = xlsread(handles.fileName, 'E27:E30000');
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!