MATLAB Help with Matlab 3D Plots - F(i,j,k)=1

  • Thread starter Thread starter jenga42
  • Start date Start date
  • Tags Tags
    Matlab Plots
AI Thread Summary
To plot a 3D graph of the function F(i,j,k) = 1, the isosurface function in MATLAB is recommended, as it can visualize the surface where the function equals a specified value. Initially, there was concern that isosurface would not work since F(i,j,k) does not exactly equal 1, but it was later confirmed that isosurface can effectively estimate values within a specified range, such as 0.99 < F(i,j,k) < 1.01. This capability allows for the successful plotting of the desired isosurface, demonstrating its utility in visualizing functions that approach a specific value.
jenga42
Messages
12
Reaction score
0
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!
 
Physics news on Phys.org
jenga42 said:
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!
It sounds like you're trying to display the F(i,j,k) = 1 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.
 
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
 
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!
 

Similar threads

Replies
4
Views
4K
Replies
2
Views
3K
Replies
5
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Back
Top