Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i have a GUI with a button. when the button is pressed the it will plot a graph. How do i make the figure not in the GUI window? how to make it in separate Figure?

조회 수: 1 (최근 30일)

답변 (1개)

Geoff Hayes
Geoff Hayes 2016년 1월 19일
Hazman - create a new figure before calling plot. For example,
figure;
plot(x,y);
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2016년 1월 19일
Glad it worked out, Hazman. Most likely what was happening is that the call to plot tries to plot the data to the current axes. Your GUI, which appears to have been created programmatically, would be the current figure. So the current axes would be within the current figure and that is where your data would be drawn.

Community Treasure Hunt

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

Start Hunting!

Translated by