How can I plot the input function in this example? (I already got the graph of the output function)
조회 수: 2 (최근 30일)
이전 댓글 표시
![](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
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!