Unable to get the plot in my function to show up in my GUI
조회 수: 2 (최근 30일)
이전 댓글 표시
When I run my function with my inputs the graph will come up just come however when I added it into my GUI the graph will still pop up through Matlab and not within the the GUI.
I did create a GUI with edit text boxes for input, a push button, and an axis. I know my inputs and push button is working but can't figure out how to get the plot to show up inside the GUI. Any help would be greatly appreciated!
EDIT: I just copied and pasted my function code into the GUI code under the push button and it would graph it inside the GUI just how I like it. I don't understand why it graphs it in a figure when I just run the function it self.
댓글 수: 0
답변 (1개)
Walter Roberson
2014년 1월 30일
Please have a look at my comments in http://www.mathworks.co.uk/matlabcentral/answers/22208-show-figure
Also it sounds like you might have a figure() call in your code, making it pop up a new window.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!