Changeset 876 for trunk/src/get_field.m
- Timestamp:
- Feb 22, 2015, 11:07:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r874 r876 268 268 drawnow 269 269 uiwait(handles.get_field); 270 271 %------------------------------------------------------------------------272 % --- Executes when user attempts to close get_field.273 %------------------------------------------------------------------------274 %------------------------------------------------------------------------275 276 277 % Use UIRESUME instead of delete because the OutputFcn needs278 % to get the updated handles structure.279 280 % function get_field_CloseRequestFcn(hObject, eventdata)281 % handles.output=[];282 % guidata(hObject, handles);% Update handles structure283 % %delete(handles.get_field);284 % uiresume(handles.get_field);285 %drawnow286 % if isequal(get(handles.get_field, 'waitstatus'), 'waiting')287 % % The GUI is still in UIWAIT, us UIRESUME288 % uiresume(handles.get_field);289 % else290 % % The GUI is no longer waiting, just close it291 % delete(handles.get_field);292 % end293 270 294 271 % ----------------------------------------------------------------------- … … 775 752 end 776 753 if numel(var_component)<2 777 if numel( test_coord)<2754 if numel(find(test_coord))<2 778 755 ListCoord={''}; 779 756 else 780 if numel( test_coord)>=3757 if numel(find(test_coord))>=3 781 758 set(handles.Coord_x,'Value',3) 782 759 set(handles.Coord_y,'Value',2) … … 1068 1045 set(handles.vector_z,'Visible',status) 1069 1046 set(handles.W_title,'Visible',status) 1047 if strcmp(status,'on') 1070 1048 Field=get(handles.get_field,'UserData'); 1071 1049 if Field.MaxDim>=3% for 3D fields, propose to use the third variable as time … … 1077 1055 end 1078 1056 end 1079 1057 end 1080 1058 %------------------------------------------------------------------------ 1081 1059 % --- Executes on button press in OK.
Note: See TracChangeset
for help on using the changeset viewer.