App Designer error Undefined function 'mtimes' for input arguments of type 'cell'.
显示 更早的评论
I'm trying to reshape a 8x1280 matrix by stacking N columns
A %is some 8x1280 matrix
N = 128;
NewA = reshape(A, N*8, []); % 1024x10 matrix (128 cols of A stacked on top of each other x10)
the code above works just fine in my code.m file,but this error msg appears when I run the same code in the App Designer
Undefined function 'mtimes' for input arguments of type 'cell'.
So is there another way to reshape the matrix without using reshape function?!
*Edit
I tried this ,but gives error"Index in position 2 exceeds array bounds."
A=rand(8,1280);
NewA=[];
for n1=1:10
for n2=1:128
NewA(:,n1)=[ NewA(:,n1); A(:,n2)];
end
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!