comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 clear all;
2
3 sets = ao(ao, 'Params')
4
5 %% From XML file
6
7 save(ao(1), 'a1.xml');
8
9 set = 'From XML File';
10 pl = ao(ao, 'Params', char(set));
11 a1 = ao(plist('filename', 'a1.xml'), pl)
12
13 %% From MAT file
14
15 save(ao(1), 'a1.mat');
16
17 set = 'From MAT File';
18 pl = ao(ao, 'Params', char(set));
19 a1 = ao(plist('filename', 'a1.mat'), pl)
20
21 %% From ASCII file
22
23 x = 1:10;
24 y = 1:10;
25 out = [x;y/10].';
26 save 'data.txt' out -ASCII -DOUBLE -TABS
27
28 set = 'From ASCII File';
29 pl = ao(ao, 'Params', char(set));
30 a1 = ao(plist('filename', 'data.txt'), pl)
31
32 %% From Function
33
34 set = 'From Function';
35 pl = ao(ao, 'Params', char(set));
36 a1 = ao(pl)
37
38
39 %% From Values
40
41 set = 'From Values';
42 pl = ao(ao, 'Params', char(set));
43 a1 = ao(pl)
44
45 %% From Time-series Function
46
47 set = 'From Time-series Function';
48 pl = ao(ao, 'Params', char(set));
49 a1 = ao(pl)
50
51 %% From Frequency-series Function
52
53 set = 'From Frequency-series Function';
54 pl = ao(ao, 'Params', char(set));
55 a1 = ao(pl)
56
57 %% From Window
58
59 set = 'From Window';
60 pl = ao(ao, 'Params', char(set));
61 a1 = ao(pl)
62
63 %% From Waveform
64
65 set = 'From Waveform';
66 pl = ao(ao, 'Params', char(set));
67 a1 = ao(pl)
68
69 %% From Polynomial
70
71 set = 'From Polynomial';
72 pl = ao(ao, 'Params', char(set));
73 a1 = ao(pl)
74
75 %% From Repository
76
77 % set = 'From Repository';
78 % pl = ao(ao, 'Params', char(set));
79 % a1 = ao(pl)
80
81 %% From Plist
82
83 set = 'From Plist';
84 pl = ao(ao, 'Params', char(set));
85 a1 = ao(pl)
86