Monday, June 21, 2010

Design graph interface using Matlab

The idea can borrow from: ncx-netcdf-explorer
1. Create a empty menu with title "Jiansen Lu"
figure('units','pixel','NumberTitle','off','Name','Jiansen Lu','MenuBar','none')
2.Add "file" in the menu:
menuFile = uimenu('label','file');
3. Add function "load" under "file"
menuFileLoad = uimenu('parent',menuFile,'label','load','callback','ncx(''ncx_load'')');
ncx_load.m is callback function and needs to be defined.

No comments:

Post a Comment