필터 지우기
필터 지우기

Access the name of a ui in the code -- Simple question?

조회 수: 1 (최근 30일)
Douglas Anderson
Douglas Anderson 2016년 12월 3일
댓글: Walter Roberson 2016년 12월 3일
Hello!
This may be obvious, but I am writing GUIDE code for a gui, and want to access the name of the ui within the code (for a file name). Is it "handles.ui_name" or something simple like that? GUIDE puts it all through the code, prepending it to, for example, _OpeningFcn.
Thanks!
Doug Anderson

채택된 답변

Image Analyst
Image Analyst 2016년 12월 3일
Double click on your figure in GUIDE. Then go to the "name" property and type in some name for it. Then look at the "tag" property. Let's say you gave it a "tag" property of figMainWindow. Then to get it the name property, do this:
thisFiguresName = handles.figMainWindow.name;

추가 답변 (0개)

카테고리

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