how do i plot x>=0, z>=0 and xz>=y^2 ?

2 ビュー (過去 30 日間)
pravin behera
pravin behera 2017 年 8 月 8 日
コメント済み: pravin behera 2017 年 8 月 8 日
I want to plot a 3D graph, with x>=0, z>=0 and xz>=y^2. There is no function here and this plot basically is a region satisfying the above conditions, how do i plot this ? Or if someone can show me how to plot the positive quadrant i.e. x>=0, y>=0 and z>=0. this will also do. Please help

回答 (1 件)

John D'Errico
John D'Errico 2017 年 8 月 8 日
You don't want to plot data points. So tools like plot, line, scatter, etc., are all inappropriate. You don't want to plot a surface, or any function at all. So tools like surf, contour, etc., are all useless.
You are asking to plot an infinite, unbounded region. So tools like patch, that can plot anything that can be represented as a set of patches is invalid.
The point is, x>=0, y>=0, z>=0 is unbounded. Infinity is a long way out. Are your eyes good enough to see that far? You can create a cube, for example, that extends to some extent in x,y,z. Create each facet of the cube as a patch, then use patch. Or you can download the plotregion tool, found on the file exchange.
Plotting a more general region like the one you describe could be done by approximating the curved surface using a triangulation. Then you can use tools like trisurf, or just patch.
  1 件のコメント
pravin behera
pravin behera 2017 年 8 月 8 日
Plotting a small region is also fine, i mean if i can plot for -5 < x <5 and -5 < y <5 and -5 < z <5 is also fine.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by