matlabplottransfer-function

How to get/see plot of resultant series function/system in matlab?


I am using MATLAB for series interconnection of two systems as shown in the code snippet below . How can I see/display the final resultant series transfer function in graph form (sys in my code)?

clc
clear all
close all
num1=[2];
den1=[3 4];
num2=[3];
den2=[4 1];
sys1=tf(num1,den1);
sys2=tf(num2,den2);
sys=series(sys1,sys2);

Solution

  • I guess that depends what kind of graph you want:

    Here's the step response for example (done with Octave, not MATLAB, but it's the same code and same result):

    enter image description here