plot differant data in the same axes

조회 수: 1 (최근 30일)
best16 programmer
best16 programmer 2017년 5월 1일
댓글: best16 programmer 2017년 5월 1일
hi matlab community i'm working on a gui in matlab,and i have two push buttons each one of them plot in the same axe. how can i plot the data from the two buttons in the same axe without one graph erases the other. thank you for advance.

채택된 답변

hmi amid
hmi amid 2017년 5월 1일
You should use the command
hold on
Then all your plots will stay on the same axes. But if you want to clear the graph after a while you should put this before you draw a new plot:
hold off
  댓글 수: 1
best16 programmer
best16 programmer 2017년 5월 1일
thank you.should i use this even in matlab gui code with different button

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by