To perform a loop for i=1:1000
in Matlab, you can use a for
loop. Here's an example:
main.m43 chars4 lines
You can replace % do something here
with the code you want to execute in each iteration of the loop. For example:
main.m32 chars4 lines
This will print the value of i
in each iteration of the loop.
gistlibby LogSnag