Plot 2 Figures on a GUI (guide)
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a GUI created in guide which has two axis on the GUI itself. I have a button which runs a separate function (which cannot be included in the GUI main script due to complexity) which generates two graphs. I want these two graphs to plot on the GUI. When I run the usual plotting method, one graph is plotted on the GUI, the other opens in a separate figure. How would I go about changing this?
As an example, I have created the below code. plot(x,y) plots on one axis on the GUI, plot(y,x) opens in a new figure.
function example
x=[1:10];
y=x.^2;
plot(x,y)
figure;
plot(y,x);
end
댓글 수: 0
채택된 답변
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!