I have attached the exercise as a JPEG to this post.
I have so far come out with the following code
Is this correct? How can I change the equation to xnew and xold, I have tried but mess the thing up.
Is there a simpler way to write this code?
I am a beginner, would appreciate some much needed help.
Thanks.
I have so far come out with the following code
Rich (BB code):
r=3.5;
X1=input('X1=');
for R = 1:100
X1 = X1 + 1;
X1 = r*(X1-1)*(1-(X1-1))
endThis
Is there a simpler way to write this code?
I am a beginner, would appreciate some much needed help.
Thanks.
Attachments
-
49.2 KB Views: 18