view testing/utp_1.1/utps/ssm/reference_files/make_bode_references.m @ 44:409a22968d5e default

Add unit tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 18:42:11 +0100
parents
children
line wrap: on
line source

% Make bode reference files for different SSM models and save to disk.
% 
% M Hewitson 27-07-10
% 
% $Id: make_bode_references.m,v 1.1 2010/07/27 07:17:17 hewitson Exp $
% 

models = {'DFACS', 'IFO'};

for kk=1:numel(models)
  
  mdl = models{kk};
  disp(['*** Making bode references for ' mdl]);
  
  pl  = plist('built-in', mdl);
  s = ssm(pl);
  out = bode(s);
  
  % save reference file
  save(out, sprintf('ref_bode_%s.mat', mdl));
  
end