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
2016-1-19
Hazman - create a new figure before calling plot. For example,
figure;
plot(x,y);
2 个评论
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!