Changeset 648 for trunk/src/civ.m


Ignore:
Timestamp:
Jun 9, 2013, 10:31:58 PM (7 years ago)
Author:
sommeria
Message:

get_field updated, several bugs corrected,open_uvmat suppressd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r623 r648  
    45634563civ2.convectFlow='n';
    45644564
    4565 
    4566 % --- Executes on selection change in RunMode.
    4567 function RunMode_Callback(hObject, eventdata, handles)
    4568 
    4569 
    4570 function nb_field2_Callback(hObject, eventdata, handles)
    4571 
    4572 
    4573 function last_j_Callback(hObject, eventdata, handles)
    4574 
    4575 
    4576 function last_i_Callback(hObject, eventdata, handles)
     4565% 'open_uvmat': open with uvmat the  field selected in the list of 'civ/status'
     4566%------------------------------------------------------------------------
     4567%function open_uvmat(hObject, eventdata)
     4568%
     4569% INPUT:
     4570% hObject: handle of uicontrol object containing the list
     4571% eventdata: not used
     4572function open_uvmat(hObject, eventdata)
     4573%------------------------------------------------------------------------
     4574list=get(hObject,'String');
     4575index=get(hObject,'Value');
     4576rootroot=get(hObject,'UserData');
     4577filename=list{index};
     4578ind_dot=strfind(filename,'...');
     4579if ~isempty(ind_dot)
     4580    filename=filename(1:ind_dot-1);
     4581end
     4582filename=fullfile(rootroot,filename);
     4583if exist(filename,'file')%visualise the vel field if it exists
     4584    uvmat(filename)
     4585    set(gcbo,'Value',1)
     4586end
     4587
     4588%
     4589% % --- Executes on selection change in RunMode.
     4590% function RunMode_Callback(hObject, eventdata, handles)
     4591%
     4592%
     4593% function nb_field2_Callback(hObject, eventdata, handles)
     4594%
     4595%
     4596% function last_j_Callback(hObject, eventdata, handles)
     4597%
     4598%
     4599% function last_i_Callback(hObject, eventdata, handles)
Note: See TracChangeset for help on using the changeset viewer.