Changeset 1197 for trunk/src/get_field.m
- Timestamp:
- Mar 11, 2026, 5:31:25 PM (3 days ago)
- File:
-
- 1 edited
-
trunk/src/get_field.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r1196 r1197 627 627 var_component=find(test_component);% list of variable indices elligible as unstructured coordinates 628 628 var_coord=find(test_coord);% % list of variable indices elligible as gridded coordinates 629 % index_coord=[];630 % index_component=[];631 % for iscalar=1:numel(scalar_index)632 % index_component=[index_component find(var_component==scalar_index(iscalar),1)];633 % index_coord=[index_coord find(var_coord==scalar_index(iscalar),1)];634 % end635 % var_component(index_component)=[];636 % var_coord(index_coord)=[];637 629 ListCoord=Field.Display.ListVarName([var_coord var_component]); 638 %coord_val=zeros(size(ListCoord)); 630 639 631 640 632 %% set default selection for grid coordinates … … 903 895 function Coord_x_Callback(hObject, DimCell, handles) 904 896 905 index=get(handles.Coord_x,'Value');906 897 string=get(handles.Coord_x,'String'); 907 VarName=string{ index};898 VarName=string{get(handles.Coord_x,'Value')}; 908 899 if ~ischar(DimCell)% no dimension as input 909 900 update_field(handles,VarName)% update the display of the variable 'VarName' and its dimensions in the general list of variables 910 901 end 911 if isequal(get(handles.FieldOption,'Value'),1) 902 MenuFieldOption=get(handles.FieldOption,'String'); 903 FieldOption=MenuFieldOption{get(handles.FieldOption,'Value')}; 904 if strcmp(FieldOption,'1D_plot') 912 905 set_coord_y_options(handles,VarName) 913 906 end
Note: See TracChangeset
for help on using the changeset viewer.
