matlab: fix in field interpolation

pull/1/head
Thorsten Liebig 2012-11-22 11:19:23 +01:00
parent 0cdc26eba2
commit 2bc39894aa
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ function [field_i mesh_i] = GetField_Interpolation(field, mesh, lines, varargin)
% author: Thorsten Liebig
%
% See also ReadHDF5Dump ReadHDF5FieldData ReadHDF5Mesh
if ((~iscell(lines) && ~isnumeric(lines)) || numel(lines)~=3)
error('openEMS:GetField_Interpolation: numLines for interpolation must be a vector...');
end
@ -57,7 +58,8 @@ end
if (isfield(field,'FD'))
field_i.FD = interpolate_fields(field.FD,x,y,z, x_i, y_i, z_i);
field_i.FD.freq = field.FD.freq;
field_i.FD.frequency = field.FD.frequency;
field_i.FD.DataType = field.FD.DataType;
end
return