From 37922d3529c0fcb7b9c69112e8d78190b9a12b52 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 19 Dec 2011 10:49:41 +0100 Subject: [PATCH] nf2ff: workaround bad matlab memory management --- matlab/AnalyzeNF2FF.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/AnalyzeNF2FF.m b/matlab/AnalyzeNF2FF.m index 207706c..aab2690 100644 --- a/matlab/AnalyzeNF2FF.m +++ b/matlab/AnalyzeNF2FF.m @@ -47,7 +47,11 @@ for n=find(nf2ff.directions==1) [Hf{n}, H_mesh{n}] = ReadHDF5Dump( [Sim_Path '/' filenames_H{n}], 'Frequency', f ); %clear out time domain data Hf{n} = rmfield(Hf{n},'TD'); - + + % matlab error concerning memory management + % perform memory garbage collection + pack + % reshape mesh into row vector mesh{n}.x = reshape( E_mesh{n}.lines{1}, 1, [] ); mesh{n}.y = reshape( E_mesh{n}.lines{2}, 1, [] );