How do I plot two different functions on the same plot?

조회 수: 16 (최근 30일)
John
John 2023년 3월 11일
답변: Torsten 2023년 3월 11일
What format do I need to write the code in to plot both of these functions on the same plot?

채택된 답변

Torsten
Torsten 2023년 3월 11일
Use
hold on
plot(...) % plot first graph
plot(...) % plot second graph
hold off

추가 답변 (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