i have create a figure like circle
Afficher commentaires plus anciens

i have to create a figure like this picture. Given value is r= 262pixel, Wmax= 10.6pi , equation is w=Wmax*(1-(x^2+y^2)/(r^2))^2 , x and y are two variables, we cannot know their values.x and y are satisfied the following condition:
sqrt(x^2+y^2)<=r.
i did code this one . but this isn't working. plz anyone help me what is the wrong here. i will be greatful to you.
clear all
format long
r=262;
Wmax=10.6*pi;
syms x y;
xlabel('x')
ylabel('y')
if sqrt(x^2+y^2)>=r
w=0;
elseif sqrt(x^2+y^2)<r
w=Wmax*(1-(x^2+y^2)/r^2)^2;
end
plot(w)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


