Index exceeds matrix dimensions
3 次查看(过去 30 天)
显示 更早的评论
Hi,
Iam getting error at following place, please suggest to resolve.
Index exceeds matrix dimensions.
Error in uisignalbuilder_speed/Import_Excel (line 595)
timefromworkspace = evalin('base','speedfromworkspace(:,1);');%test
function Import_Excel()
a=uigetfile('*xls');
name1=cellstr(a);
[~,a] =xlsread(name1{1});% read data from excel file%test replaced 1
% removeallsignals();%TEST
evalin('base', 'clear speedfromworkspace;');
assignin('base','speedfromworkspace',a);
removeallsignals();
timefromworkspace = evalin('base','speedfromworkspace(:,1);'); // GETTING ERROR
HERE
speedfromworkspace = evalin('base','speedfromworkspace(:,2);');
2 个评论
Adam
2019-8-21
Best option is to debug, examine the workspace, etc, although all the evalin and assignin operations make it more difficult than it should be to debug code.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!