Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Cobweb diagram in Matlab

  1. Sep 10, 2010 #1
    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

    Attached Files:

  2. jcsd
  3. Sep 18, 2010 #2


    User Avatar
    Gold Member

    I think people will be more willing to help you if you just post the text from both of the program
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook