- #1
planar
- 1
- 0
Hi,
I was wondering how you can get this to work in MatLab:
input is n
for i from 1 to n
x0 = 1
xi = x(i-1) + 2
So that for i = 1, x1 = x0 +2, or x1 = 1 + 2
Is there anyway to express this in MatLab?
Thanks!
I was wondering how you can get this to work in MatLab:
input is n
for i from 1 to n
x0 = 1
xi = x(i-1) + 2
So that for i = 1, x1 = x0 +2, or x1 = 1 + 2
Is there anyway to express this in MatLab?
Thanks!