How can I plot elliptical pressure distribution

Hi, how can I plot elliptical pressure distribution. The equation is given below.
pn = Pmax*sqrt(1-(x/a)^2-(y/b)^2)
where, Pmax = (3*N)/(2*pi*a*b) is the maximum pressure. N is the load, a and b are the semi-major and semi-minor axes. Thanks.

 採用された回答

darova
darova 2019 年 5 月 30 日

1 投票

You mean surface or pcolor?
[x,y] = meshgrid(-5:0.5:5);
Pmax = (3*N)/(2*pi*a*b);
pn = Pmax*sqrt(1-(x/a)^2-(y/b)^2);
surf(x,y,pn)
% or
pcolor(x,y,pn)

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2019 年 5 月 30 日

回答済み:

2019 年 5 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by