From b6196230f5654d61ccbab45ed3905372f0650e3c Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 13 Jun 2012 10:44:44 +0200 Subject: [PATCH] matlab: regression fix in ConvertHDF5_VTK --- matlab/ConvertHDF5_VTK.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matlab/ConvertHDF5_VTK.m b/matlab/ConvertHDF5_VTK.m index ed24aa6..42ca131 100644 --- a/matlab/ConvertHDF5_VTK.m +++ b/matlab/ConvertHDF5_VTK.m @@ -57,14 +57,14 @@ if (do_FD_dump) else ph = linspace(0,360,phase_N+1); ph = ph(1:end-1); - for n = 1:numel(field.FD.freq) + for n = 1:numel(field.FD.frequency) 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{:}); 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{:}); - 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{:}); end end