3D Plot- How to do it

5 ビュー (過去 30 日間)
MA Cunha
MA Cunha 2013 年 6 月 16 日
I want to plot a 3D surface with the following:
y=4x-1/2
z=(14x-1)(113*x-31)/100
I know that these are each in xOy and zOy .

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 16 日
編集済み: Azzi Abdelmalek 2013 年 6 月 16 日
x=-100:0.1:100;
y=4*x-1/2;
z=(14*x-1).*(113*x-31)/100;
plot3(x,y,z)
%or
x=-100:0.1:100;
y=4*x-1/2;
[x1,y1]=meshgrid(x,y);
z1=(14*x1-1).*(113*x1-31)/100;
mesh(x1,y1,z1)
  2 件のコメント
MA Cunha
MA Cunha 2013 年 6 月 16 日
x is [0 1], y [0 1] and z>0 ...and I want to see the region were y>4*x-1/2 and z>(14*x-1)*(113*x-31)/100...
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 16 日
How this is related to the posted question?

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

カテゴリ

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