Changeset 675 for trunk/src/get_field.m


Ignore:
Timestamp:
Aug 27, 2013, 11:25:21 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r674 r675  
    727727        end
    728728    end
    729     var_component=find(test_component);% list of variable indices elligible as unstructured coordiantes
     729    var_component=find(test_component);% list of variable indices elligible as unstructured coordinates
    730730    var_coord=find(test_coord);% % list of variable indices elligible as structured coordinates
    731731    ListCoord=Field.Display.ListVarName([var_component var_coord]);
     
    755755            end
    756756        end
    757         if isempty(coord_val)
     757        if isempty(find(coord_val))
    758758            coord_val=var_coord;% case of dimension coordinates
    759759        end
    760760        if numel(find(coord_val))<2
    761             coord_val=[numel(var_component)+2 numel(var_component)+1];
     761            %coord_val=[numel(var_component)+2 numel(var_component)+1];
     762            coord_val=[1 2];
    762763        end
    763764        set(handles.Coord_x,'Value',coord_val(1))
Note: See TracChangeset for help on using the changeset viewer.