Why does this code give a blank plot?
Afficher commentaires plus anciens
code:
for a=1:2:4
x=linspace(-5,5,300);
if (x>=0)
fx3=(x/a^2).*exp((-1/2)*(x/a).^2);
else
fx3=0;
end
figure(6);
plot(x,fx3);
hold on
end

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!