diff m-toolbox/test/test_ao_default_plists.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/test/test_ao_default_plists.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,86 @@
+clear all;
+
+sets = ao(ao, 'Params')
+
+%% From XML file
+
+save(ao(1), 'a1.xml');
+
+set = 'From XML File';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(plist('filename', 'a1.xml'), pl)
+
+%% From MAT file
+
+save(ao(1), 'a1.mat');
+
+set = 'From MAT File';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(plist('filename', 'a1.mat'), pl)
+
+%% From ASCII file
+
+x = 1:10;
+y = 1:10;
+out = [x;y/10].';
+save 'data.txt' out -ASCII -DOUBLE -TABS
+
+set = 'From ASCII File';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(plist('filename', 'data.txt'), pl)
+
+%% From Function
+
+set = 'From Function';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+
+%% From Values
+
+set = 'From Values';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Time-series Function
+
+set = 'From Time-series Function';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Frequency-series Function
+
+set = 'From Frequency-series Function';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Window
+
+set = 'From Window';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Waveform
+
+set = 'From Waveform';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Polynomial
+
+set = 'From Polynomial';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+
+%% From Repository 
+
+% set = 'From Repository';  
+% pl = ao(ao, 'Params', char(set));
+% a1 = ao(pl)
+
+%% From Plist
+
+set = 'From Plist';  
+pl = ao(ao, 'Params', char(set));
+a1 = ao(pl)
+