How can I plot the input function in this example? (I already got the graph of the output function)
1 view (last 30 days)
Show older comments
Roger Vegeta
on 28 Jul 2016
Answered: Stefan Reich
on 28 Jul 2016
How could I plot the input function as well for the same range of x? thanks so much.
0 Comments
Accepted Answer
Stefan Reich
on 28 Jul 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 Comments
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!