The data cannot be plotted because it is incompatible with the size

8 views (last 30 days)
emma brooklyn
emma brooklyn on 7 Jul 2020
Answered: VBBV on 30 Dec 2021
i m new to matlab ,i m facing problem for step and impulse response of transfer function...
My code is.....
num=25*[0.4 1];
den=conv([0.16 1],[1 6 25]);
G=tf(num,den)
step(G)
step and impuse is not working although plot window appear but blank.
any one can solve this ??

Answers (2)

madhan ravi
madhan ravi on 7 Jul 2020
clear tf
F = figure(1);
step(G)
shg

VBBV
VBBV on 30 Dec 2021
num=25*[0.4 1];
den=conv([0.16 1],[1 6 25]);
G=tf(num,den)
G = 10 s + 25 ------------------------------- 0.16 s^3 + 1.96 s^2 + 10 s + 25 Continuous-time transfer function.
step(G)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!