In MATLAB, you can represent a transfer function using the tf
function. The general syntax is:
main.m19 chars2 lines
Where num
represents the vector of numerator coefficients and den
represents the vector of denominator coefficients of the transfer function.
Here is an example of how to create a transfer function in MATLAB:
main.m202 chars6 lines
You can also create transfer functions by defining poles and zeros using the zpk
function and convert them to a transfer function using the tf
function.
gistlibby LogSnag