From dc080b741afa06a0909e510fd587aa444786cf18 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 1 Mar 2012 10:23:02 +0100 Subject: [PATCH] matlab nf2ff: pass trough arguments to dump-boxes --- matlab/CreateNF2FFBox.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matlab/CreateNF2FFBox.m b/matlab/CreateNF2FFBox.m index c32c62f..b180ea1 100644 --- a/matlab/CreateNF2FFBox.m +++ b/matlab/CreateNF2FFBox.m @@ -31,11 +31,12 @@ dump_mode = 1; for n=1:numel(varargin)/2 if strcmp(varargin{2*n-1},'Frequency') - add_args = {'Frequency', varargin{2*n}}; + add_args = {add_args{:}, 'Frequency', varargin{2*n}}; dump_type = 10; - end - if strcmp(varargin{2*n-1},'Directions') + elseif strcmp(varargin{2*n-1},'Directions') directions=varargin{2*n}; + else + add_args = {add_args{:}, varargin{2*n-1}, varargin{2*n}}; end end