http://www.simwe.com/forum/viewthread.php?tid=540190&highlight=%B2%CE%CA%FD%B4%AB%B5%DD
作者:cwit
關於handles:
實際上這個handles是MATLAB中GUI編程中最常用的一個句柄管理變量。
handles的生成:handles = guihandles( figurehandle );將figure中所有對象中“Tag”屬性有值的句柄的handle採集在一起。handles是結構名,每個“Tag”域名裏保持此對象的句柄。
handles的保存:guidata( figurehandle, handles );handles將保存在figure對象的“ApplicationData”的一個域名裏。
handles的使用:handles = guidata( h );其中爲figure中任意一個對象的句柄。
handles.SpeechSourceGui可能是一個figure的句柄,“userdata”是一個對象的屬性,可以在其中存取任何數據。但是我不怎麼用它,一則它只能存一個變量;二則它無法存入變量的名字,很難區分。