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