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


  1. May 19, 2006 #1
    Hey guys,

    Is there anyone good with MATLAB for loops? I am having trouble with getting an embedded loop within another loop to work.

    I am trying to vary two parameters and create a surface plot with a third variable as the dependant.

    What I really need help with is how to get the LHS of my statements correct. I will post my code later tonight, its on another computer, but if anyone has a good site to help me out in the mean time, that would be great.

  2. jcsd
  3. May 19, 2006 #2
    Er, what error are you getting?
  4. May 20, 2006 #3
    Its not an error perse, its just that i get a line in 3d space, when i should be getting a surface plot, because two variables are being varied at all points.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook