How can I plot the input function in this example? (I already got the graph of the output function)
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Roger Vegeta
le 28 Juil 2016
Réponse apportée : Stefan Reich
le 28 Juil 2016
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155195/image.jpeg)
How could I plot the input function as well for the same range of x? thanks so much.
0 commentaires
Réponse acceptée
Stefan Reich
le 28 Juil 2016
Dear Rogelio, I suggest simply adding
p = fun(x);
hold on
plot(x,p,':')
to the end of your function. Should do the trick. S
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D 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!