fix in ReadHDF5FieldData
parent
7b34a8706a
commit
4877532c8e
|
@ -67,8 +67,10 @@ if (numel(FD.names)>0)
|
||||||
ind = find(strcmp(FD.names,name));
|
ind = find(strcmp(FD.names,name));
|
||||||
if isempty(ind)
|
if isempty(ind)
|
||||||
ind = find(strcmp(FD.names,['/FieldData/FD/f' int2str(n-1)]));
|
ind = find(strcmp(FD.names,['/FieldData/FD/f' int2str(n-1)]));
|
||||||
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
|
if ~isempty(ind)
|
||||||
hdf_fielddata.FD.freq(n) = FD.freq(ind);
|
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
|
||||||
|
hdf_fielddata.FD.freq(n) = FD.freq(ind);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
|
hdf_fielddata.FD.values{n} = double(hdf5read(file,FD.names{ind}));
|
||||||
hdf_fielddata.FD.freq(n) = FD.freq(ind);
|
hdf_fielddata.FD.freq(n) = FD.freq(ind);
|
||||||
|
|
Loading…
Reference in New Issue