15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Polynomials<br />

Compute the values <strong>of</strong> the polyfit estimate over a finer range, and plot the<br />

estimate over the real data values for comparison:<br />

x2 = 1:.1:5;<br />

y2 = polyval(p,x2);<br />

plot(x,y,'o',x2,y2)<br />

grid on<br />

500<br />

450<br />

400<br />

350<br />

300<br />

250<br />

200<br />

150<br />

100<br />

50<br />

0<br />

1 1.5 2 2.5 3 3.5 4 4.5 5<br />

To use these functions in an application example, see “Data Fitting Using<br />

Linear Regression” in the <strong>MATLAB</strong> Data Analysis book.<br />

Partial Fraction Expansion<br />

residue finds the partial fraction expansion <strong>of</strong> the ratio <strong>of</strong> two polynomials.<br />

This is particularly useful for applications that represent systems in transfer<br />

function form. For polynomials b and a, if there are no multiple roots,<br />

bs ( ) r<br />

---------- 1 r<br />

-------------- -------------- 2<br />

… r n<br />

= + + + -------------- + k<br />

as ( ) s – p 1 s–<br />

p 2 s – p s<br />

n<br />

2-7

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

Saved successfully!

Ooh no, something went wrong!