fix in ReadHDF5FieldData

pull/1/head
Thorsten Liebig 2011-04-08 11:26:13 +02:00
parent 7b34a8706a
commit 4877532c8e
1 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,10 @@ if (numel(FD.names)>0)
ind = find(strcmp(FD.names,name));
if isempty(ind)
ind = find(strcmp(FD.names,['/FieldData/FD/f' int2str(n-1)]));
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
hdf_fielddata.FD.freq(n) = FD.freq(ind);
if ~isempty(ind)
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
hdf_fielddata.FD.freq(n) = FD.freq(ind);
end
else
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
hdf_fielddata.FD.freq(n) = FD.freq(ind);