|
MATLAB Function Reference |
h = findobj
h = findobj('PropertyName',PropertyValue,...)
h = findobj(objhandles,...)
h = findobj(objhandles,'flat','PropertyName',PropertyValue,...)
findobj 找出圖像物件的位置並傳回其握把。你可以限制只從層級的某一分支搜尋有特定的特性值的握把。
h = findobj('PropertyName',PropertyValue,...)
r傳回擁有 PropertyName 性質且其值為 PropertyValue 的所有圖像物件握把。你可以指定超過一對的 性質/值 在這個情況下, findobj 只會傳回完全符合的物件。
h = findobj(objhandles,...) 限制搜尋範圍為在 objhandles 列出的物件以及其子孫。
h = findobj(objhandles,'flat','PropertyName',PropertyValue,...) r限制搜尋範圍為在 objhandles 列出的物件且不搜尋其子孫。
findobj 若握把指向一個不存在的圖像物件,則傳回錯誤。
findobj('Color','r')
When
a graphics object is a descendant of more than one object identified in objhandles, MATLAB searches the object
each time findobj encounters its handle. Therefore, implicit references to a graphics
object can result in its handle being returned multiple times.
h = findobj(gca,'Type','line')
copyobj, gcf, gca, gcbo, gco, get, set
axes, figure, image, light, line, patch, surface, text, uicontrol, uimenu
|
findfigs |
|
findstr |