Appendix_SD - Appendix SD SD.1 MATLAB Computer Aids:...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Appendix SD Computer Aids: M ATLAB , and PSpice SD.1 MATLAB M ATLAB (Matrix Laboratory) from The Mathworks, Inc., Natick, Massachusetts, is a powerful software that is very popular for technical computing. It is a programming language that additionally provides an interactive environment for using the language. The strength of MATLAB is partly due to its ability to handle arrays and matrices in its commands, which allows highly compact code. For example, A and B may be two arrays of a thousand elements each. The single command A*B produces an array of a thousand elements, each of which is the product of the corresponding elements of A and B. MATLAB has a number of add-in modules, referred to as toolboxes , for specialized applications. One of these toolboxes, SIMULINK, has a user-friendly graphical interface that can be used for the dynamic simulation of linear and nonlinear systems, both continuous in time and discrete. For additional information on MATLAB and its toolboxes, the reader is referred to the Mathworks website at . The use of MATLAB in this book is restricted to a number of commands and to plotting graphs. This section provides a quick reference for MATLAB commands that are commonly used in solving circuit problems and for plotting results. For additional, and more detailed, information, the reader is referred to the MATLAB manuals or the many textbooks available on the subject (see Bibliography). Useful Commands Polynomials In MATLAB, polynomials are represented by row vectors, i.e., horizontal one- dimensional arrays, consisting of coefficients of the independent variable ordered in descending powers, the last coefficient being the constant term (zero power). conv(a,b) computes the product of two polynomials specified by the coefficient arrays a and b and returns the coefficient array of the product polynomial of length equal to (length a ) × (length b) – 1. [quotient,remainder] = deconv(num,den) computes the result of dividing two polynomials specified by the arrays of coefficient num and den and returns the arrays of coefficients of the quotient and remainder polynomials.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 poly(r) returns the array of coefficients of a polynomial whose roots are the array r . polyval(a,x) evaluates a polynomial, specified by its array of coefficients a , at the values of its independent variable x , which could be a single- dimensional array or a matrix. residue(B, A) returns the residues, poles and direct term (quotient) of a partial fraction expansion of the ratio of two polynomials B ( s )/ A ( s ). [num,den] = residue(r, p, k) returns the coefficients of two polynomials whose ratio is the partial fraction expansion having residues r , poles p, and quotient k .. roots(a)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/17/2011 for the course EECE 210 taught by Professor Riadchedid during the Fall '07 term at American University of Beirut.

Page1 / 18

Appendix_SD - Appendix SD SD.1 MATLAB Computer Aids:...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online