Matlab app designer confuses the end written inside matrix index with the end for if and for loop
3 ビュー (過去 30 日間)
I got a piece of my code that is causing function nesting error and the root cause is that matlab is not understanding the end written in Matrix(end)
is not related to the loop or function end and has messed up
exactly where I haveTtot(end) , this end is confused
t = ff(:,1);
mask = strcmp(filename, mulnames(:,1));
multip = cell2mat(mulnames(mask, 2));
Walter Roberson 2020 年 5 月 13 日
with it being empty, end as an index would be 0. mTtot(end) would be mTtot(0) which is not permitted.
mTtot= [mTtot ,t.'+mTtot(end)+resol];
Perhaps you are wanting mTtot(end) to be empty instead of an error when mTtot is empty. But if that were the case, then you would have the situation
mTtot = [, t.'++resol]
and anything +  is , so you would be dealing with
mTtot = [, ]
which would leave mTtot empy, but I suspect you are trying to append to it in that statement,.