Surface cut function in matlab?

Click For Summary

Discussion Overview

The discussion revolves around the use of MATLAB functions to visualize a 2-D matrix as a surface and the possibility of making planar cuts through this surface to observe contours. The scope includes technical explanations and proposed methods for achieving specific visualizations in MATLAB.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes that MATLAB has functions to plot a 2-D matrix as a surface but seeks a method to cut the surface at a specific plane to observe contours.
  • Another participant suggests that plotting specific rows in 3-D can represent a planar cut, implying a straightforward approach.
  • A different participant challenges this by stating that not all points on a planar cut belong to the same row of the matrix, indicating a more complex structure and questioning the simplicity of the proposed planar cut.
  • One participant proposes using 2-D interpolation to achieve the desired cut, suggesting that it could allow for plotting points based on a function of x and y.
  • A follow-up question asks for clarification on how to perform 2-D interpolation, emphasizing the need for a 2-D projection of the 3-D surface with contours corresponding to the same height.

Areas of Agreement / Disagreement

Participants express differing views on the feasibility and method of making planar cuts through the surface, indicating that the discussion remains unresolved with multiple competing approaches proposed.

Contextual Notes

The discussion highlights potential limitations in understanding how to effectively represent complex surfaces and the assumptions involved in planar cuts and interpolation methods.

veejay
Messages
39
Reaction score
0
there're functions in MATLAB to plot a 2-D matrix as a surface.
not supposing the surface is like a paraboloid, is there a function to cut it at a particular plane to observe the contour?
any suggestions for the same would be appreciated.
thanks.
 
Physics news on Phys.org
If you have a matrix and are plotting in 3-d, just plot the rows you wish to see in 2-d. It is the same as a planar cut.
 
well, actually not all points on a planar cut belong to the same row of the matrix..
i hope u get what i mean. the resultant structure takes a definite shape like a paraboloid for example but the contours when viewed from the bottom arent circles.
is this too complicated for a planar cut in a desired direction?
 
OK, I see what you need. I would try to do a 2-d interpolation, then plot the points you want to look at i.e. [itex]z_i =f(x_i,y_i)[/itex]. You should be able to get the cut you want.
 
Dr Transport said:
OK, I see what you need. I would try to do a 2-d interpolation, then plot the points you want to look at i.e. [itex]z_i =f(x_i,y_i)[/itex]. You should be able to get the cut you want.

how do u do the 2-d interpolation?
actually, to be more clear what i need is a 2-d projection(x-y projection) of the 3-d surface, with contours corresponding to same z(height).
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K