The document provides a summary of various MATLAB commands used for signal and system analysis. It lists commands for clearing workspaces, defining arrays and matrices, calculating roots of polynomials, solving symbolic equations, plotting system responses, converting between state-space and transfer function models, and inverting matrices. The descriptions are concise explanations of what each command does and the typical parameters or variables involved.
The document provides a summary of various MATLAB commands used for signal and system analysis. It lists commands for clearing workspaces, defining arrays and matrices, calculating roots of polynomials, solving symbolic equations, plotting system responses, converting between state-space and transfer function models, and inverting matrices. The descriptions are concise explanations of what each command does and the typical parameters or variables involved.
clear all clear workspace [] A = [1 2 3] signifies given values are elements of an array or matrix x =1; separates rows of a matrix ; [1 2 3; 4 5 6] ' transpose . converts matrix multiplier & divider into array multiplier and divider roots y = roots(p) p - polynomial calculates roots of a polynomial poly A = poly(V) V - vector of roots creates a polynomial with the given roots p1 - polynomial 1 multiplies polynomials conv c = conv(p1,p2) p2 - polynomial 2 p1 - polynomial 1 divides polynomials deconv c = deconv(p1,p2) p2 - polynomial 2 syms syms x y z x y z - defined symbols defines the variables to be used in symbolic equations solve x = solve(p) p - polynomial solves symbolic equations in terms of defined symbols simple simple(x) x - results from solve arranges solve results into simplest form pretty pretty(x) x - results from solve arranges solve results into an easier viewable form dsolve dsolve(d) d - differential statement solves symbolic differential equations in terms of defined symbols subs subs(x) x - results from solve substitues defined values into symbolic statements step(sys) sys - state system plots system response to a step input step num - numerator step(num,den) den - denominator impulse(sys) sys - state system plots system response to an impulse input impulse num - numerator impulse(num,den) den - denominator rlocus(sys) sys - state system opens the root locus gui for given system rlocus num - numerator rlocus(num,den) den - denominator bode(sys) sys - state system creates bode plot for given system bode num - numerator bode(num,den) den - denominator nyquist(sys) sys - state system creates nyquist plot for given system nyquist num - numerator nyquist(num,den) den - denominator ss sys = ss(A,B,C,D) A,B,C,D - state space matricies builds state space model with given state space matricies tf sys = tf(sys) sys - state system calculates transfer function for a given system sys - state system converts a state space model into a transfer function ss2tf [num,den] = ss2tf[sys] num - numerator den - denominator A,B,C,D - state space matricies converts a transfer function into a state space model sys - state system tf2ss [A B C D] = tf2ss[num,den] num - numerator den - denominator R - residues calculates the poles & residues of a given transfer function P - poles residue [R,P,K] = residue(num,den) K - direct term num - numerator den - denominator inv A = inv(B) B - matrix inverts a given matrix