MATLAB Creating a Cobweb Diagram in MATLAB

  • Thread starter Thread starter AnitaBillie
  • Start date Start date
  • Tags Tags
    Diagram Matlab
Click For Summary
The discussion centers on creating a cobweb diagram in MATLAB, with a user expressing confusion over their output, which consists of two straight lines instead of the expected cobweb shape. The user is seeking assistance to troubleshoot their code. They are encouraged to share the text from their MATLAB files to facilitate better support from the community. The focus is on resolving the issue with the function input and parameters to achieve the correct diagram representation.
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
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K