필터 지우기
필터 지우기

Write as a MATLAB program

조회 수: 2 (최근 30일)
Serbianu
Serbianu 2015년 6월 13일
댓글: Serbianu 2015년 6월 13일
How can I write this system as a MATLAB program?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 13일
편집: Azzi Abdelmalek 2015년 6월 13일
%------------your parameters-----
kp=10
t1=1
t2=1
a=1
w=1
%---your transfer fuction-----------
N=kp
D=[t1*t2 t1+t2 1]
H=tf(N,D)
%------your input signal u(t)---------
t=0:0.1:10
u=a*sin(w*t)
%-----compute the output signal y(t)
y=lsim(H,u,t)
plot(t,y)
  댓글 수: 1
Serbianu
Serbianu 2015년 6월 13일
Thanks, also I want to know how ca I write kp/(t1s+1)(t2s+1) properly as a function, without using "tf". Can you help me?

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by