O'Reilly logo

Process Control: Modeling, Design, and Simulation by B. Wayne Bequette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.9. MATLAB RGA Function File

The MATLAB function file, rga.m, given in Appendix 13.2 can be used to the find the RGA of any square (number of inputs = number of outputs) gain matrix. For example, consider the wet grinding circuit of Exercise 10.

First, the gain matrix is entered

» g = [119 153 -21; 370 767 -50; 903 -667 -1033]
g =
         119         153         -21
         370         767         -50
         903        -667       -1033

Then the RGA is calculated using the call to the function file:

» lambda = rga(g)
lambda =
    3.6449   -1.9131   -0.7318
   -2.3616    2.9581    0.4035
   -0.2833   -0.0450    1.3283

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required