Changeset 380 for trunk/src/uvmat.m
- Timestamp:
- Jan 29, 2012, 2:31:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r379 r380 2103 2103 set(handles.VelType_1,'Visible','on') 2104 2104 set(handles.FixVelType,'Visible','on') 2105 menu=set_veltype_display(ParamOut.CivStage );2105 menu=set_veltype_display(ParamOut.CivStage,FileType); 2106 2106 index_menu=strcmp(ParamOut.VelType,menu);%look for VelType in the menu 2107 2107 index_val=find(index_menu,1); … … 2193 2193 end 2194 2194 end 2195 2196 % menu_transform=get(handles.transform_fct,'String');2197 2195 choice_value=get(handles.transform_fct,'Value'); 2198 2196 transform_list=get(handles.transform_fct,'UserData'); … … 2807 2805 set(handles.VelType_1,'Visible','off') 2808 2806 end 2809 % set_veltype_display([handles.VelType_1 handles.interp1_1 handles.filter1_1 ...2810 % handles.civ2_1 handles.interp2_1 handles.filter2_1],0)2811 2807 if isfield(UvData,'XmlData_1') 2812 2808 UvData=rmfield(UvData,'XmlData_1'); … … 3056 3052 %------------------------------------------------------------------------ 3057 3053 % --- set the visibility of relevant velocity type menus: 3058 function menu=set_veltype_display(Civ )3054 function menu=set_veltype_display(Civ,FileType) 3059 3055 %------------------------------------------------------------------------ 3060 3056 if isequal(Civ,0) … … 3069 3065 imax=6; 3070 3066 end 3067 if ~exist('FileType','var') 3068 FileType='civx'; 3069 end 3070 switch FileType 3071 case 'civx' 3071 3072 menu={'civ1';'interp1';'filter1';'civ2';'interp2';'filter2'}; 3073 case 'civdata' 3074 menu={'civ1';'civ-filter1';'filter1';'civ2';'civ-filter2';'filter2'}; 3075 end 3072 3076 menu=menu(1:imax); 3073 3077
Note: See TracChangeset
for help on using the changeset viewer.