필터 지우기
필터 지우기

Create a Multiple graph with tha same pop up manu

조회 수: 1 (최근 30일)
ADC
ADC 2018년 12월 10일
댓글: ADC 2018년 12월 19일
Hi All
I need to create a GUi with a multiple graph controlled by the same pop up menu, for exsample if I select the option 1 from the pop up menu I will get in graph 1 a plot that coming as plot (A(:,5),A(:,6) and in the second graph plot(A(:,8),A(:,9));
where A is a matrix that I already have;
It shoul be easy but I can't still find a solution....
  댓글 수: 2
Jan
Jan 2018년 12월 10일
The question is not clear. We cannot guess what "graph 1" is or where "A" is coming from. Actually it should be easy to implement the code in the callback function of the menu. So please piost what you have tried so far and explain, which problem you have.
ADC
ADC 2018년 12월 19일
thanks Jan
I solved my problem by callback function and a subplot graph;
Thanks a lot!!!

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

채택된 답변

Cris LaPierre
Cris LaPierre 2018년 12월 14일
Much easier to help if you share code of what you have attempted. That gives us a common starting point to go from.
In the callback function for the popup menu, place two plot commands using the syntax
plot(ax1,A(:,5),A(:,6))
plot(ax2,A(:,8),A(:,9))
where ax1 is a handle to the axes where you want to plot A5,A6 and ax2 is a handle to the axes where you want to plot A8,A9.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by