how to reduce forloops and run time??

for rr = 1:25
for mm = 1:150
for nn = 1:300
[~,idx] = min(abs(var1(:,1) - tof(mm,nn,rr)));
voltage(mm,nn,rr) = bscan(idx,rr);
end
end
end

Answers (0)

This question is closed.

Asked:

on 22 Oct 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!