matlab: regression fix in ConvertHDF5_VTK

pull/1/head
Thorsten Liebig 2012-06-13 10:44:44 +02:00
parent 640419ab7a
commit b6196230f5
1 changed files with 4 additions and 4 deletions

View File

@ -57,14 +57,14 @@ if (do_FD_dump)
else else
ph = linspace(0,360,phase_N+1); ph = linspace(0,360,phase_N+1);
ph = ph(1:end-1); ph = ph(1:end-1);
for n = 1:numel(field.FD.freq) for n = 1:numel(field.FD.frequency)
for p = ph for p = ph
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_' num2str(p,'%03d') '.vtk' ]; filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_' num2str(p,'%03d') '.vtk' ];
Dump2VTK(filename, real(field.FD.values{n}*exp(1j*p*pi/180)), mesh, fieldname, varargin{:}); Dump2VTK(filename, real(field.FD.values{n}*exp(1j*p*pi/180)), mesh, fieldname, varargin{:});
end end
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_abs.vtk' ]; filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_abs.vtk' ];
Dump2VTK(filename, abs(field.FD.values{n}), mesh, fieldname, varargin{:}); Dump2VTK(filename, abs(field.FD.values{n}), mesh, fieldname, varargin{:});
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_ang.vtk' ]; filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_ang.vtk' ];
Dump2VTK(filename, angle(field.FD.values{n}), mesh, fieldname, varargin{:}); Dump2VTK(filename, angle(field.FD.values{n}), mesh, fieldname, varargin{:});
end end
end end