필터 지우기
필터 지우기

How to plot contours only inside ellips?

조회 수: 3 (최근 30일)
Akshay Kumar
Akshay Kumar 2016년 11월 14일
편집: Akshay Kumar 2016년 11월 14일
a=4 %input('half of the ellips major axis')
b=3 %input('half of the ellips minor axis')
Mt=1 %input('torque')
G=80 %input('regidity modulus')
x=-a:0.01:a;
y=-b:0.01:b;
y1= b*(sqrt(1-(x/a).^2));
y2 = transpose(y);
w1=y2*x;
w= (Mt*(b^2 - a^2) * w1 )/(pi * a^3 * b^3 * G);
plot(x,y1,'w',x,-y1,'w');
hold on
contourf(x,y2,w,30)
colorbar
colormap(hot)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by