App Designer error Undefined function 'mtimes' for input arguments of type 'cell'.
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!