I am getting a straight line while running the following code. What is going wrong??
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abdul
le 14 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 14 Fév 2014
x=0.1:0.001:10;
y=exp(-x.^2/2)/sqrt(x);
plot(x,y)
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 14 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 14 Fév 2014
x=0.1:0.001:10;
y=exp(-x.^2/2)./sqrt(x);
plot(x,y)
It's ./ instead of /
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!