I am getting a straight line while running the following code. What is going wrong??

 Réponse acceptée

x=0.1:0.001:10;
y=exp(-x.^2/2)./sqrt(x);
plot(x,y)
It's ./ instead of /

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 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!

Translated by