Declaring global handle or variable

5 ビュー (過去 30 日間)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012 年 5 月 25 日
Hello I am using uicontrol() under a function pro_laminate(). The code looks like this
function pro_laminate() h1 = uicontrol('Parent',h0,'Tag','lm','style', 'text', 'string','Laminate Name:','Position',[0 30 100 20]); a=10;
The handle 'h1' and data 'a' looks private with in the function. I am not able to access the handle or data in other function can somebody help me. How to declare these variable so that I can access in other function. If I can use setappdata() and getappdata() function then how to use please help me in this regard.

回答 (1 件)

Daniel Shub
Daniel Shub 2012 年 5 月 25 日
This is FAQ: 5.16

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by