MATLAB exercise 2

Thread Starter

smarch

Joined Mar 14, 2009
52
I have attached the exercise as a JPEG to this post.
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 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.
 

Attachments

Top