- Timestamp:
- Jul 1, 2010, 12:01:37 AM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r100 r106 2063 2063 %get the object file 2064 2064 defaultname=get(handles.RootPath,'String'); 2065 if isempty(defaultname) 2066 defaultname={''}; 2067 end 2065 2068 [FileName, PathName, filterindex] = uigetfile( ... 2066 2069 {'*.xml;*.mat', ' (*.xml,*.mat)'; -
trunk/src/series/merge_proj.m
r93 r106 64 64 test_movie(iview)=0; 65 65 if ~isequal(hhh,'')&& mmreader.isPlatformSupported() 66 if isequal(lower( FileExt{iview}),'.avi')66 if isequal(lower(Series.FileExt{iview}),'.avi') 67 67 MovieObject{iview}=mmreader(fullfile(Series.RootPath{iview},[Series.RootFile{iview} Series.FileExt{iview}])); 68 68 test_movie(iview)=1; … … 158 158 VelType_val=get(hseries.VelTypeMenu,'Value'); 159 159 VelType=VelType_str{VelType_val}; %the same for all views 160 if isequal(FieldName,'get_field...') 160 if strcmp(FieldName,'') 161 msgbox_uvmat('ERROR','no input field defined in FieldMenu') 162 elseif strcmp(FieldName,'get_field...') 161 163 hget_field=findobj(allchild(0),'Name','get_field');%find the get_field... GUI 162 164 SubField=get_field('read_get_field',hObject,eventdata,hget_field); %read the names of the variables to plot in the get_field GUI -
trunk/src/struct2nc.m
r93 r106 113 113 VarDimIndex=Data.VarDimIndex{ivar}; %indices of the variable dimensions in the list of dimensions 114 114 siz=size(VarVal); 115 VarDimName=Data.VarDimName{ivar}; %NEW116 if ischar(VarDimName) %NEW117 VarDimName={VarDimName}; %NEW118 end %NEW119 testrange=(numel(VarDimName)==1 && strcmp(VarDimName{1},ListVarName{ivar}) && numel(VarVal)==2); %NEW115 VarDimName=Data.VarDimName{ivar}; 116 if ischar(VarDimName) 117 VarDimName={VarDimName}; 118 end 119 testrange=(numel(VarDimName)==1 && strcmp(VarDimName{1},ListVarName{ivar}) && numel(VarVal)==2); 120 120 testline=isequal(length(siz),2) && isequal(siz(1),1)&& isequal(siz(2), Data.DimValue(VarDimIndex)); 121 121 testcolumn=isequal(length(siz),2) && isequal(siz(1), Data.DimValue(VarDimIndex))&& isequal(siz(2),1); 122 if ~test line && ~testcolumn && ~isequal(siz,Data.DimValue(VarDimIndex))122 if ~testrange && ~testline && ~testcolumn && ~isequal(siz,Data.DimValue(VarDimIndex)) 123 123 errormsg=['wrong dimensions declared for ' ListVarName{ivar} ' in struct2nc.m']; 124 124 break
Note: See TracChangeset
for help on using the changeset viewer.