Jan 14, 2010

Matlab UI

Root is screen, Figure is part of screen, Axes is part of Figure, where you can draw image, line, rectangle, surface, and text objects.

1) Axes is plural of axis
2) Axes, Menu, Uiobjects are children of Figure;
3) Root can not be create and destroyed.



some functions used first time
1) handles -> used for transfer data between sub-functions.

2) set(hObject, 'toolbar','figure') -> add a toolbar for figure control such as zoom

3) guidata(hObject, handles) -> save changes to guidata stored in handles, if u do not do this after you modifying the handles, it will be reset after you exit the sub-function

4) dcmobject = datacursormode(gcf) -> get info of data cursor setups, you can use

5) getCursorInfo(dcm_obj) to get position of current cursor, useful for me!

6) uigetfile -> open a dialog to let you select a file, and return its file name and path

7) uigetdir -> open a dialog to let you choose a directory.

8) ginput -> let you choose a point in the figure using cross mouse pointer.

9) gtext -> let you put a text on the figure using cross mouse pointer.


No comments:

Post a Comment