Changeset 581 for trunk/src/sub_field.m
- Timestamp:
- Mar 12, 2013, 12:52:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sub_field.m
r580 r581 75 75 76 76 %% field request 77 FieldRequest=cell(size(Field.ListVarName));77 ProjModeRequest=cell(size(Field.ListVarName)); 78 78 for ilist=1:numel(Field.VarAttribute) 79 if isfield(Field.VarAttribute{ilist},' FieldRequest')80 FieldRequest{ilist}=Field.VarAttribute{ilist}.FieldRequest;79 if isfield(Field.VarAttribute{ilist},'ProjModeRequest') 80 ProjModeRequest{ilist}=Field.VarAttribute{ilist}.ProjModeRequest; 81 81 end 82 82 end 83 FieldRequest_1=cell(size(Field_1.ListVarName));83 ProjModeRequest_1=cell(size(Field_1.ListVarName)); 84 84 for ilist=1:numel(Field_1.VarAttribute) 85 if isfield(Field_1.VarAttribute{ilist},' FieldRequest')86 FieldRequest_1{ilist}=Field_1.VarAttribute{ilist}.FieldRequest;85 if isfield(Field_1.VarAttribute{ilist},'ProjModeRequest') 86 ProjModeRequest_1{ilist}=Field_1.VarAttribute{ilist}.ProjModeRequest; 87 87 end 88 88 end … … 115 115 VarVal=Field_1.(Field_1.ListVarName{ilist}); 116 116 for i1=1:numel(Field.ListVarName) 117 if (isempty( FieldRequest{i1})&&isempty(FieldRequest_1{ilist})||strcmp(FieldRequest{i1},FieldRequest_1{ilist})) && isequal(Field.(Field.ListVarName{i1}),VarVal)117 if (isempty(ProjModeRequest{i1})&&isempty(ProjModeRequest_1{ilist})||strcmp(ProjModeRequest{i1},ProjModeRequest_1{ilist})) && isequal(Field.(Field.ListVarName{i1}),VarVal) 118 118 ind_remove(ilist)=1; 119 119 NewDim=Field.VarDimName{i1};
Note: See TracChangeset
for help on using the changeset viewer.