kschul14
- 2
- 0
I'm have a really hard time understanding for loops in matlab. How can I solve y=x^3+1 with a for loop?
kschul14 said:it's an assignment. we are supposed to use the dot operator which is really easy and a for loop and the range is 0<=x<=2 with 100 points distributed uniformly. I have tryed the fallowing
for i=0:01:2
y(i)=1+i^3
end
this won't work
for i=0:01:2
y(i)=1+i^3
end