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

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

details

Line 
1y = struct('class','RV','names',{{'y'}});
2u = struct('class','RV','names',{{'u'}});
3yu = struct('class','RV','names',{{'y','u'}});
4rgr= struct('class','RV',...
5        'names',{{'y', 'y','y','u'}},...
6                'times' , [-1, -2, -3, -1]);
7
8%Data generating system
9system = 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
21logger = struct(...
22        'class','dirfilelog',...
23        'dirname','arx_test',...
24        'maxlen',  1000);
25
26estimators = {
27        struct('class','ARX',...
28        'y', y,...
29        'rgr', rgr)
30};
31
32%experiment description
33experiment.ndat = 9000;
34
35M=estimator(system,estimators,experiment);%,logger);
Note: See TracBrowser for help on using the browser.