20.01.2015 Views

njit-etd2003-081 - New Jersey Institute of Technology

njit-etd2003-081 - New Jersey Institute of Technology

njit-etd2003-081 - New Jersey Institute of Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

284<br />

4. Remove the constant levels and make the data zero mean with<br />

z2 = dtrend(z2);<br />

5. Now, fit to the data a model <strong>of</strong> the form:<br />

where T is the sampling interval (here 0.005 seconds). This model, known as an ARX<br />

model, tries to explain or compute the value <strong>of</strong> the output at time t, given previous values<br />

<strong>of</strong> y and u.<br />

The best values <strong>of</strong> the coefficients a l , a 2 , b 1 and b2 can be computed with<br />

th = arx(z2,[10 10 31);<br />

6. The numbers in the second argument tell arx to find a model (B.1) with ten a-<br />

parameters, ten b-parameters, and three delays. The result is stored in the matrix th in a<br />

somewhat coded form. To specify the actual sampling interval, enter<br />

th = sett(th,0.005);<br />

7. There are several ways to display and illustrate the computed model. With<br />

present(th);<br />

the coefficient values <strong>of</strong> (B.1) and their estimated standard deviations are presented on<br />

the screen.<br />

8. Next, one might ask how to evaluate how well the model fits the data. A simple test<br />

is to run a simulation whereby real input data is fed into the model, and compare the<br />

simulated output with the actual measured output. For this, select a portion <strong>of</strong> the data<br />

that was not used to build the model. for example, from sample 25.101 to in NM.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!