root/applications/bdmtoolbox/tutorial/estimation/arx_test.m @ 412

Revision 412, 0.8 kB (checked in by smidl, 15 years ago)

arx example for estimator workig

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