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);
- 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
>> 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 then
>> num = [1 0 2];
would be the correct vector.
3 MATLAB Related Books