fro loop syntax octave code example
Example: octave for loop
#Fibonacci calculator
fib = ones (1, 10);
for i = 3:10
fib(i) = fib(i-1) + fib(i-2);
end
#Fibonacci calculator
fib = ones (1, 10);
for i = 3:10
fib(i) = fib(i-1) + fib(i-2);
end