view m-toolbox/test/test_recreate_1.m @ 49:0bcdf74587d1 database-connection-manager

Cleanup
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:24:36 +0100
parents f0afece42f48
children
line wrap: on
line source

% Testing features of 'recreate from history'.
%
% M Hewitson 16-03-07
%
% $Id: test_recreate_1.m,v 1.16 2009/02/02 15:20:38 hewitson Exp $
%
function test_recreate_1()
  
  % Create constant AO
  
  a1 = ao(2:20);
  d = a1.data;
  disp(['vals = ' num2str(d.y)])
  iplot(a1)
  plot(a1.hist)
  
  % Create from plist
  a2 = ao(plist('fcn', 'complex(randn(100,1), randn(100,1))'));
  d = a2.data;
  d.y;
  iplot(a2)
  plot(a2.hist)
  
  
  % Reproduce from history
  a_out = rebuild(a1);
  iplot(a_out)
  plot(a_out.hist)
  a_out = rebuild(a2);
  iplot(a_out)
  plot(a_out.hist)
  
end
% END