Changeset 649 for trunk/src/series


Ignore:
Timestamp:
Jun 9, 2013, 10:32:50 PM (11 years ago)
Author:
sommeria
Message:

open_uvmat integrated in check_data_files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/check_data_files.m

    r635 r649  
    177177    hh=uicontrol('Style','listbox', 'Position', [20 340 500 40], 'String', message);
    178178end
     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
     187function open_uvmat(hObject, eventdata)
     188%------------------------------------------------------------------------
     189list=get(hObject,'String');
     190index=get(hObject,'Value');
     191rootroot=get(hObject,'UserData');
     192filename=list{index};
     193ind_dot=strfind(filename,'...');
     194if ~isempty(ind_dot)
     195filename=filename(1:ind_dot-1);
     196end
     197filename=fullfile(rootroot,filename);
     198if exist(filename,'file')%visualise the vel field if it exists
     199    uvmat(filename)
     200    set(gcbo,'Value',1)
     201end
Note: See TracChangeset for help on using the changeset viewer.