source:
trunk/src/open_uvmat.m
@
525
Last change on this file since 525 was 445, checked in by , 13 years ago | |
---|---|
File size: 868 bytes |
Rev | Line | |
---|---|---|
[356] | 1 | % 'open_uvmat': open with uvmat the field selected in the list of 'civ/status' or 'series/check_data_files' |
2 | %------------------------------------------------------------------------ | |
3 | %function open_uvmat(hObject, eventdata) | |
4 | % | |
5 | % INPUT: | |
6 | % hObject: handle of uicontrol object containing the list | |
7 | % eventdata: not used | |
[343] | 8 | function open_uvmat(hObject, eventdata) |
9 | %------------------------------------------------------------------------ | |
10 | list=get(hObject,'String'); | |
11 | index=get(hObject,'Value'); | |
12 | rootroot=get(hObject,'UserData'); | |
13 | filename=list{index}; | |
14 | ind_dot=strfind(filename,'...'); | |
15 | if ~isempty(ind_dot) | |
16 | filename=filename(1:ind_dot-1); | |
17 | end | |
18 | filename=fullfile(rootroot,filename); | |
19 | if exist(filename,'file')%visualise the vel field if it exists | |
20 | uvmat(filename) | |
21 | set(gcbo,'Value',1) | |
[445] | 22 | % delete(get(hObject,'parent'))%delete the display figure to stop the check process |
[343] | 23 | end |
Note: See TracBrowser
for help on using the repository browser.