I have an app I wrote in Matlab app designer, built in Matlab 2020a (v9.10 runtime environment). I have to compile it in v9.7 runtime though. When I do this it runs significantly slower. The function that runs the slowest is, conceptually:
Output = ones(length(A),length(B));
Temp = [];
for ii = 1:length(A)
for jj = 1:length(B)
Temp = [Temp; Output(ii,jj)];
end
end
The above code runs for a total of 1.5 million to 2 million cycles. When I compile and run in v9.10, this bit of code is manageable, but in v9.7 there is a significant slowdown. I'm not sure this is fixable at this point, but I would like to give a more official reason for why this won't work.
Thanks.