MATLAB tf
 MATLAB tf In order to prevent spam, users must register before they can edit or create articles.

## 1 Introduction to MATLAB's tf command

Transfer functions are easily to created in MATLAB using the tf command. (The tf command requires the.) This command accepts two vectors - one for the numerator and one for the denominator.

## 2 Basic Usage for MATLAB's tf command

The basic usage of MATLAB's tf command is

 >> sys = tf(num, den);


where:

num is a vector representing the coefficients of the numerator and
den is a vector representing the coefficients of the denominator.

For example, a transfer function like this

 $LaTeX: H\left( s \right) = \frac{s+2}{s^2+3+10}$

becomes

 >> num = [1 2];
>> den = [1 3 10];


Notice that MATLAB determines the order from the number of elements in the vectors. If the numerator had been $LaTeX: s^2+2$ then

 >> num = [1 0 2];


would be the correct vector.