ENME 202 Lecture Notes - Lecture 6: Eval

35 views3 pages

Document Summary

Equivalent to add/subtr coeff arrays but arrays must be same length. P2 = [2 0 0 0 0 1] Roots p = [ 2 8 12 8]; r = roots(p) If r = roots p(x) = (x - r1)(x - r2)(x - rn) pt = conv([1 - r(1)],[1 - r(2)]) conv(pt,[1 - r(3)]) Matlab will return simplified version of [ 2 8 12 8] which is [1 4 6 4] Would have to scale polynomial to get to original. 2 * conv( conv( [1 - r(1)], [1 - r(2)] ), [1 - r(3)]) (can nest) pp = poly(r) %pp = [1 4 6 4] Same monic result as we got from conv above but with a single function call. Helpful bc there"s lots of times you only know the roots. % . mat files are a saved workspace of variables (if using vcl you have to have the file open. %sunspots contains arrays spots" and year" year = year - min(year);

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents