njit-etd2003-081 - New Jersey Institute of Technology
njit-etd2003-081 - New Jersey Institute of Technology njit-etd2003-081 - New Jersey Institute of Technology
283 B.2.5 System Identification Procedure Make sure that there is an "ident" MATLAB toolbox (Version 4.0 or later) exist in the toolbox directory of MATLAB. The procedure described here is essentially the same as demo #2 in iddemo. It shows an example of a typical session with the System Identification Toolbox. First, invoke MATLAB and follow along. 1. Data have been collected from a COPD or a normal subject during one of the experimental session. Sixty thousand data points (5 minutes) were collected. The sampling interval is 5 ms (0.005 sec, 200sps). The data were loaded into MATLAB in ASCII form and are now stored as the vectors hr2 (Heart Rate: output) and rp 2 (Respiration: input) in the file agul.asc. First load the data: load agul.asc; 2. This example selects the first 25,000 data points for building a model. For convenience, the input-output vectors are merged into a matrix: z2 =Ihr2 (1:25000) rp 2 (1:25000)]; Take a look at the data, idplot(z2) The toolbox makes frequent use of default arguments. Default values are used when trailing arguments are omitted. In the case above, by default, all data points are graphed and the sampling interval is one time unit. 3. One can select the values between sample numbers 10,000 and 20,000 for a closeup, and at the same time obtain correct time scales, with idplot(z2,10000:20000,0.005)
284 4. Remove the constant levels and make the data zero mean with z2 = dtrend(z2); 5. Now, fit to the data a model of the form: where T is the sampling interval (here 0.005 seconds). This model, known as an ARX model, tries to explain or compute the value of the output at time t, given previous values of y and u. The best values of the coefficients a l , a 2 , b 1 and b2 can be computed with th = arx(z2,[10 10 31); 6. The numbers in the second argument tell arx to find a model (B.1) with ten a- parameters, ten b-parameters, and three delays. The result is stored in the matrix th in a somewhat coded form. To specify the actual sampling interval, enter th = sett(th,0.005); 7. There are several ways to display and illustrate the computed model. With present(th); the coefficient values of (B.1) and their estimated standard deviations are presented on the screen. 8. Next, one might ask how to evaluate how well the model fits the data. A simple test is to run a simulation whereby real input data is fed into the model, and compare the simulated output with the actual measured output. For this, select a portion of the data that was not used to build the model. for example, from sample 25.101 to in NM.
- Page 261 and 262: 232 Figure 5.62 Normal classificati
- Page 263 and 264: 234 5.7 Cluster Analysis The purpos
- Page 265 and 266: 236 Figure 5.64 Severity classifica
- Page 267 and 268: 238 both the normal and COPD subjec
- Page 269 and 270: 240 In summary, COPD subjects had h
- Page 271 and 272: APPENDIX A EXERCISE PHYSIOLOGY A.1
- Page 273 and 274: 244 A.3 Figure Out Your Target Hear
- Page 275 and 276: APPENDIX B ANALYSIS PROGRAM LISTING
- Page 277 and 278: 248 4) Click on file, close to exit
- Page 279 and 280: 250 • TN 11
- Page 281 and 282: 252 B.1.2 Partial Coherence Between
- Page 283 and 284: 254
- Page 285 and 286: 256 Block Diagram !rime of record K
- Page 287 and 288: 258
- Page 289 and 290: 260 B.2.2 Time — Frequency Analys
- Page 291 and 292: 262 This program provides the STFT
- Page 293 and 294: 264 G(:j+1)=G(:,j+1)/(2*sum(G(:j+1)
- Page 295 and 296: 266 T=(length(Signa)/sample)/(Times
- Page 297 and 298: 268 subplot(3, 1,3), plot(T,E); xla
- Page 299 and 300: 270 4. The program creates five out
- Page 301 and 302: 272 B.2.3.4 Program to Generate Sym
- Page 303 and 304: 274 ylabel('frequency'); title('Ins
- Page 305 and 306: 276 The program will run and output
- Page 307 and 308: 278 axis([0 1 0 2]); grid on; xlabe
- Page 309 and 310: 280 vagal=sum(TFDs(HFC,1:k)); symto
- Page 311: 282 plot(J,symtopar); %plot(A,symto
- Page 315 and 316: 286 Make sure the agreement is quit
- Page 317 and 318: 288 B.2.6 Principal Components Anal
- Page 319 and 320: 290 Columns 12 through 15 'LF_pcoh_
- Page 321 and 322: 292 I= 1.0000 -0.0000 -0.0000 -0.00
- Page 323 and 324: 294 variances = 3.4083 1.2140 1.141
- Page 325 and 326: 296 B.2.7 Cluster Analysis Program
- Page 327 and 328: 298 end [R,C]=size(Data); if length
- Page 329 and 330: 300 B.2.8 Cross-correlation Program
- Page 331 and 332: 302 C.3 Partial coherence of HR and
- Page 333 and 334: 304 [13] Madwed, J., and R. Cohen.
- Page 335 and 336: 306 [41] Mallat, S. G., "A Theory f
- Page 337: [70] Tazebay, M.V., R.T. Saliba and
283<br />
B.2.5 System Identification Procedure<br />
Make sure that there is an "ident" MATLAB toolbox (Version 4.0 or later) exist in the<br />
toolbox directory <strong>of</strong> MATLAB. The procedure described here is essentially the same as<br />
demo #2 in iddemo. It shows an example <strong>of</strong> a typical session with the System<br />
Identification Toolbox. First, invoke MATLAB and follow along.<br />
1. Data have been collected from a COPD or a normal subject during one <strong>of</strong> the<br />
experimental session. Sixty thousand data points (5 minutes) were collected. The<br />
sampling interval is 5 ms (0.005 sec, 200sps). The data were loaded into MATLAB in<br />
ASCII form and are now stored as the vectors hr2 (Heart Rate: output) and<br />
rp 2 (Respiration: input) in the file agul.asc. First load the data:<br />
load agul.asc;<br />
2. This example selects the first 25,000 data points for building a model. For<br />
convenience, the input-output vectors are merged into a matrix:<br />
z2 =Ihr2 (1:25000) rp 2 (1:25000)];<br />
Take a look at the data,<br />
idplot(z2)<br />
The toolbox makes frequent use <strong>of</strong> default arguments. Default values are used<br />
when trailing arguments are omitted. In the case above, by default, all data points are<br />
graphed and the sampling interval is one time unit.<br />
3. One can select the values between sample numbers 10,000 and 20,000 for a closeup,<br />
and at the same time obtain correct time scales, with<br />
idplot(z2,10000:20000,0.005)