- Timestamp:
- Jun 9, 2013, 10:32:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/check_data_files.m
r635 r649 177 177 hh=uicontrol('Style','listbox', 'Position', [20 340 500 40], 'String', message); 178 178 end 179 180 % 'open_uvmat': open with uvmat the field selected in the list of 'series/check_data_files' 181 %------------------------------------------------------------------------ 182 %function open_uvmat(hObject, eventdata) 183 % 184 % INPUT: 185 % hObject: handle of uicontrol object containing the list 186 % eventdata: not used 187 function open_uvmat(hObject, eventdata) 188 %------------------------------------------------------------------------ 189 list=get(hObject,'String'); 190 index=get(hObject,'Value'); 191 rootroot=get(hObject,'UserData'); 192 filename=list{index}; 193 ind_dot=strfind(filename,'...'); 194 if ~isempty(ind_dot) 195 filename=filename(1:ind_dot-1); 196 end 197 filename=fullfile(rootroot,filename); 198 if exist(filename,'file')%visualise the vel field if it exists 199 uvmat(filename) 200 set(gcbo,'Value',1) 201 end
Note: See TracChangeset
for help on using the changeset viewer.