Hi,
rateControl cannot be applied here. It executes only at a fixed frequency. You can use pause(t) to execute the loop at different fequencies. Below codes demonstrates the same
n = [1 2 3 4 5];
delays = [1 1 2 3 3];
count = 1;
for x = n
tic
disp(x);
pause(delays(count));
count = count + 1;
toc
end
Refer these links: