필터 지우기
필터 지우기

How to force GUIHandles to include handles to axes.

조회 수: 1 (최근 30일)
Craig
Craig 2013년 2월 6일
Hello all,
In my GUI start function I do this:
hSpectatorGui = gcf;
And have the start function return hSpectatorGui.
I then call the same GUI from an m s-function and get the handles
handles = guihandles(hSpectatorGui)
The GUI has an edit box and an axes. Guihandles however only returns the handle to the GUI itself and the edit box. The handle to the axes isn't returned!! Something like
figure1: 4.623009155273438e+003
edit1: 4.624008911132813e+003
... where is the axes?!
This makes plotting extremely tricky. The tag isn't empty so as far as I can see should work.
Please help!
Craig

채택된 답변

Jan
Jan 2013년 2월 6일
Do you mean:
handles = guidata(hSpectatorGui)

추가 답변 (1개)

Craig
Craig 2013년 2월 7일
Thanks this works. I am trying now to understand the difference between guihandles and guidata!

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by