Changeset 38 for trunk/src/create_grid.m
- Timestamp:
- Mar 7, 2010, 6:30:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/create_grid.m
r37 r38 1 %'create_grid': associated with GUI create_grid.fig to display message boxes, for error, warning or input calls2 % c reate_grid(title,display)1 %'create_grid': called by the GUI geometry_calib to create a physical grid 2 % coord=create_grid(input_grid) 3 3 % 4 4 % OUTPUT: 5 % answer (text string)= 'yes', 'No', 'cancel', or the text string introduced as input5 % coord: matrix (nbpoint, 3) of coordinates for grid points, with columns x,y,z 6 6 % 7 7 %INPUT: 8 % title: string indicating the type of message box: 9 % title= 'INPUT_TXT','CONFIMATION' ,'ERROR', 'WARNING', 'INPUT_Y-N', default = 'INPUT_TXT' (the title is displayed in the upper bar of the fig). 10 % if title='INPUT_TXT', input data is asked in an edit box 11 % if title='CONFIMATION'', 'ERROR', 'WARNING', the figure remains opened until a button 'OK' is pressed 12 % if title='INPUT_Y-N', an answer Yes/No is requested 13 % display, displayed text 14 % default_answer: default answer in the edit box (only used with title='INPUT_TXT') 8 % input_grid (optional): structure to initiate the GUI with fields .x_0,.Dx,.x_1 9 % (defining x coordinates), .y_0,.Dy,.y_1 (defining y coordinates) 15 10 16 11 function varargout = create_grid(varargin)
Note: See TracChangeset
for help on using the changeset viewer.