Plot Multiple lines on the same Graph

조회 수: 3 (최근 30일)
James Leak
James Leak 2020년 3월 4일
답변: Hari Krishna Ravuri 2020년 3월 9일
Hello!
I'm afraid this may be a little bit of a basic issue for many, however I'm still getting to grips with MATLAB. I am trying to plot my graphs all on one graph. I have been looking through the forums but there's a lot of information, but many of them quite different from each other. I was wondering if someone could help so that I can know what to do in the future?
I have uploaded my file also.
Many thanks!
  댓글 수: 1
KSSV
KSSV 2020년 3월 4일
Read about plot and holdon.

댓글을 달려면 로그인하십시오.

답변 (1개)

Hari Krishna Ravuri
Hari Krishna Ravuri 2020년 3월 9일
I understand that you want to retain current plot when adding new plots. Consider using
hold on
Please refer https://in.mathworks.com/help/matlab/ref/hold.html to know more about the hold command.
Hope this helps!

카테고리

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