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;

 Réponse acceptée

Iman Ansari
Iman Ansari le 4 Mai 2013

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by