22.07.2013 Views

The Polynomial Toolbox for MATLAB - DCE FEL ČVUT v Praze

The Polynomial Toolbox for MATLAB - DCE FEL ČVUT v Praze

The Polynomial Toolbox for MATLAB - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Changing the<br />

default<br />

indeterminate<br />

variable<br />

P =<br />

2<br />

To free the variable simply type<br />

clear s;<br />

P = 1+s^2<br />

P =<br />

1 + s^2<br />

After the <strong>Polynomial</strong> <strong>Toolbox</strong> has been started up the default indeterminate variable<br />

is s. This implies, among other things, that the command<br />

P = pol([P0 P1 P2],2)<br />

returns a polynomial matrix<br />

P =<br />

1 + 3s + s^2 2 + 4s<br />

3 + 5s 4 + s + s^2<br />

in the indeterminate s. <strong>The</strong> indeterminate variable may be changed with the help of<br />

the gprops command: typing<br />

gprops p; pol([P0 P1 P2],2)<br />

<strong>for</strong> instance, results in<br />

ans =<br />

1 + 3p + p^2 2 + 4p<br />

3 + 5p 4 + p + p^2<br />

To enter data independently on the current default indeterminate variable, one can<br />

use a shortcut v: <strong>The</strong> indeterminate variable v is automatically replaced by the<br />

current default indeterminate variable. Thus, after the default indeterminate<br />

variable has been set to p by the command<br />

then<br />

gprops p<br />

V = 1+v^2+3*v^3<br />

returns<br />

V =<br />

1 + p^2 + 3p^3

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

Saved successfully!

Ooh no, something went wrong!