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

  • Context: MATLAB 
  • Thread starter Thread starter jenga42
  • Start date Start date
  • Tags Tags
    Matlab Plots
Click For Summary

Discussion Overview

The discussion revolves around plotting a 3D graph in MATLAB for the function F(i,j,k) = 1, specifically focusing on how to visualize the relationship between the variables i, j, and k when the function approaches this value. The scope includes technical explanations and potential solutions for using MATLAB functions for 3D plotting.

Discussion Character

  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant seeks assistance in plotting a 3D graph for the function F(i,j,k) = 1, expressing difficulty with the surf function due to its requirement for a matrix Z component.
  • Another participant suggests using the isosurface function to display the isosurface where F(i,j,k) = 1, recommending that the original poster consult MATLAB's help system for guidance.
  • The original poster expresses concern that the isosurface function may not be suitable since F(i,j,k) never precisely equals 1, proposing the need to plot values within the range 0.99 < F(i,j,k) < 1.01 instead.
  • A later reply indicates that the isosurface function worked for the original poster, raising a question about whether isosurface estimates the values corresponding to i, j, and k where F(i,j,k) = 1.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach initially, as there are differing views on the applicability of the isosurface function. However, one participant later confirms that the isosurface function worked for their needs, indicating some resolution for that individual while leaving the broader applicability open for discussion.

Contextual Notes

The discussion highlights the uncertainty regarding the suitability of the isosurface function for cases where the function does not exactly equal 1, as well as the potential need for further exploration of MATLAB's capabilities in handling such cases.

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 [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.
 
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 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K