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

Help with Matlab plots

  1. Aug 15, 2007 #1
    Hi,

    I'm trying to plot a 3d graph of when a function, F(i,j,k) = 1 ...I want to plot 3 variables that correspond to the i j and k against each other when the function equals 1.

    ...I've tried using surf but it tells me that its Z component needs to be a matrix, not a scalar or vector.. but I don't know how else to do it.

    Any help would be greatly appreciated!

    Thanks!
     
  2. jcsd
  3. Aug 15, 2007 #2
    It sounds like you're trying to display the [tex]F(i,j,k) = 1[/tex] isosurface. The correct MATLAB function to use would be isosurface, so you may want to look up that function in MATLAB's help system to see how to use it correctly for your problem.
     
  4. Aug 15, 2007 #3
    Hi,

    Thanks for your reply. Unfortunately, I don't think the isosurface function will work in my case as although I want to plot when F(i,j,k)=1, the function never precisely equals 1: I'll need to plot something like 0.99<F(i,j,k)<1.01.

    Any other suggestions would be greatly appreciated!

    Thanks
     
  5. Aug 15, 2007 #4
    Actually I tried it just incase, and it works! ...Though I'm not really sure why! - Does isosurface estimate the values corresponding to i, j and k where F(i,j,k)=1?


    - Thank you!!!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Help with Matlab plots
  1. Help with MatLab plot (Replies: 0)

  2. MATLAB: Plotting help (Replies: 2)

Loading...