for i=1:1000 in matlab

To perform a loop for i=1:1000 in Matlab, you can use a for loop. Here's an example:

main.m
for i = 1:1000
    % do something here
end
43 chars
4 lines

You can replace % do something here with the code you want to execute in each iteration of the loop. For example:

main.m
for i = 1:1000
    disp(i);
end
32 chars
4 lines

This will print the value of i in each iteration of the loop.

related categories

gistlibby LogSnag