Error using Simulink using plot function

Hi people I have done a project with Simulink and I wanna know the frequency response of an input G(s) called tfsys. It works good. But when I do :
input_frequency = 1e-2;
sim('name');
figure(4);
plot(time_out,u,time_out,y);
Here I have an error because plot doesn t have sufficient parameters. I attached the Simulink's project. It comes from :
x1_dot=x2; x2_dot=1/m1[F+k2(x1+x3) - b1x2 - k1x1] x3_dot=x4 x4_dot=1/m2[-k2(x1+x3)-b2x4-k3x3]

답변 (2개)

Andreas Goser
Andreas Goser 2014년 2월 5일

0 개 추천

Without the error message it is guess work... Maybe the variable size is different for some reason? What does
whos time_out u y
return?
Elvio
Elvio 2014년 2월 5일

0 개 추천

i just want to simulate in my project with a sine wave as input with low and high frequency and see the diferrent with a figure.I can choose timeout

댓글 수: 1

Andreas Goser
Andreas Goser 2014년 2월 6일
Can you answer my questions? Error message and 'whos' output.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 System Identification Toolbox에 대해 자세히 알아보기

태그

질문:

2014년 2월 5일

댓글:

2014년 2월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by