Creating a Cobweb Diagram in MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter AnitaBillie
  • Start date Start date
  • Tags Tags
    Diagram Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 8K views
AnitaBillie
Messages
2
Reaction score
0
I am trying to create a cobweb diagram in matlab. However, I am not sure what I am doing wrong. When I enter the function in with its initial value and r value...my diagram comes up with 2 straight lines and not a cobweb. I am stuck.

Attached are the m.files
 

Attachments

Physics news on Phys.org
I think people will be more willing to help you if you just post the text from both of the program