How to draw this figure?

조회 수: 1 (최근 30일)
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2013년 5월 4일
I have these figures with the equation also shown. I tried making this. But I did not got the expected result. Please give me some ideas. here dij is the distance. ru = 10, rs = 5; a = 0.5, m = 0.5;

채택된 답변

Iman Ansari
Iman Ansari 2013년 5월 4일
Hi.
m=0.5;
[x,y]=meshgrid(-11:.1:11);
d=sqrt(x.^2+y.^2);
S=d;
S(d>10)=0;
S(d<=10&d>5)=exp(-0.5.*(d(d<=10&d>5)-5).^m);
S(d<=5)=1;
surf(x,y,S)
axis([-10 10 -10 10 0 1])
shading interp
  댓글 수: 1
Sabarinathan Vadivelu
Sabarinathan Vadivelu 2013년 5월 4일
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by