Figure 6-18. step response with fracred – National Instruments NI MATRIXx Xmath User Manual

Page 117

Advertising
background image

Chapter 6

Tutorial

Xmath Model Reduction Module

6-22

ni.com

Generate Figure 6-18:

tvec=0:(140/99):140;

compare(syscl,sysclr,tvec,{type=7})

f18=plot({keep,legend=["original","reduced"]})

Figure 6-18. Step Response with fracred

The end result is comparable to that from

wtbalance( )

with option

"match"

.

We can create a table to examine the values of the Hankel singular values
based on different decompositions approaches.

set precision 3 # Optional:

set format fixed # we set a smaller precision here so we

could fit

# the table in the manual.

[syscr, hsvrs] = fracred(sys, Kr, Ke, "right stab",2);

[syscr, hsvls] = fracred(sys, Kr, Ke, "left stab",2);

[syscr, hsvrp] = fracred(sys, Kr, Ke, "right perf",2);

[syscr, hsvlp] = fracred(sys, Kr, Ke, "left perf",2);

Advertising