44 |
if strcmp('depth',varargin{(iSub-1)*2+1}) & strcmp(fldNames{iFld},'prof_depth'); |
if strcmp('depth',varargin{(iSub-1)*2+1}) & strcmp(fldNames{iFld},'prof_depth'); |
45 |
tmp1=tmp1(KK); |
tmp1=tmp1(KK); |
46 |
elseif strcmp('depth',varargin{(iSub-1)*2+1}); |
elseif strcmp('depth',varargin{(iSub-1)*2+1}); |
47 |
if size(tmp1,2)==length(MITprofSub.prof_depth); tmp1=tmp1(:,KK); end; |
if size(tmp1,2)==length(MITprof.prof_depth); tmp1=tmp1(:,KK); end; |
48 |
else; |
elseif ~strcmp(fldNames{iFld},'prof_depth');; |
49 |
if size(tmp1,1)==size(prof_sub,1); tmp1=tmp1(KK,:); end; |
if size(tmp1,1)==size(prof_sub,1); tmp1=tmp1(KK,:); end; |
50 |
end; |
end; |
51 |
eval(['MITprofSub.' fldNames{iFld} '=tmp1;']); |
eval(['MITprofSub.' fldNames{iFld} '=tmp1;']); |