필터 지우기
필터 지우기

I want to write a code for the attached file.

조회 수: 1 (최근 30일)
Prathamesh Ghadge
Prathamesh Ghadge 2021년 2월 21일
답변: Mahesh Taparia 2021년 2월 24일
tau=10;
>> Tf=100;
>> sys = tf(1,[1.7*10^-12,1.6*10^-6,1])
sys =
1
---------------------------
1.7e-12 s^2 + 1.6e-06 s + 1
Continuous-time transfer function.
>> [u0,t] = gensig("square",tau,Tf);
u = 2*u0-1;
>> lsim(sys,u,t)
Tried using this nut does not work can some body help me with it.

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2021년 2월 24일
Hi
I assume the signal shown in the image is the input signal. I think whatever you are doing is correct, you might be getting same curve with slight shift of 1 time unit with same magnitude. It may be because of the transfer function you have selected as its coefficients are very small. Try with different transfer function like
tau=10;
Tf=100;
sys = tf(1,[1,10]);
[u0,t] = gensig("square",tau,Tf);
u = 2*u0-1;
lsim(sys,u,t)
You will see a significant change in response. Hope it will help!

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by