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

조회 수: 1 (최근 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에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by