1 | y = struct('class','RV','names',{{'y'}}); |
---|
2 | u = struct('class','RV','names',{{'u'}}); |
---|
3 | yu = struct('class','RV','names',{{'y','u'}}); |
---|
4 | rgr= struct('class','RV',... |
---|
5 | 'names',{{'y', 'y','y','u'}},... |
---|
6 | 'times' , [-1, -2, -3, -1]); |
---|
7 | |
---|
8 | %Data generating system |
---|
9 | system = struct(... |
---|
10 | 'class', 'ArxDS',... |
---|
11 | 'y', struct('class','RV','names',{{'y', 'u'}}),... |
---|
12 | 'u', struct('class','RV','names',{{}}),... |
---|
13 | 'rgr', rgr,... |
---|
14 | 'theta', [0.8, -0.3, 0.4, 1.0; |
---|
15 | 0.0, 0.0, 0.0, 0.0],... |
---|
16 | 'offset', [0.0, 0.0],... |
---|
17 | 'r', [0.1, 0.0; 0.0, 1.0],... |
---|
18 | 'opt', 'L_theta'); |
---|
19 | |
---|
20 | %store results |
---|
21 | logger = struct(... |
---|
22 | 'class','dirfilelog',... |
---|
23 | 'dirname','arx_test',... |
---|
24 | 'maxlen', 1000); |
---|
25 | |
---|
26 | estimators = { |
---|
27 | struct('class','ARX',... |
---|
28 | 'y', y,... |
---|
29 | 'rgr', rgr) |
---|
30 | }; |
---|
31 | |
---|
32 | %experiment description |
---|
33 | experiment.ndat = 9000; |
---|
34 | |
---|
35 | M=estimator(system,estimators,experiment);%,logger); |
---|