I can't really find why matlab won't plot this equation, I run into an error as soon as i try to run it
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Patrick
le 1 Mar 2024
Réponse apportée : Dyuman Joshi
le 1 Mar 2024
x = 0 : 0.01 : 10 ;
y= ((exp(-0.5.*x))*(4-x))-2;
% Now, plot the f(x) -> x:
plot(x, y)
% Set axes labels:
xlabel('x')
ylabel('y')
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh 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!
