How can I plot the input function in this example? (I already got the graph of the output function)

2 次查看(过去 30 天)
How could I plot the input function as well for the same range of x? thanks so much.

采纳的回答

Stefan Reich
Stefan Reich 2016-7-28
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 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by