How to draw simulink for differential equation

this is pid eqaution
num = [Kd , Kp , Ki];
den = [(1+Kp) , (1+kp) , Ki];
a = tf(num,den)
i want to give input ofr kp,ki,kd in commamd prompt window

댓글 수: 3

J Chen
J Chen 2019년 9월 12일
Your statements will generate a transfer function of (Kd*s^2 + Kp*s + Ki ) / ( (1+kp)*s^2 + (1+Kp)*s + Ki ). Is this what you expect? What do you mean "i want to give input for kp,ki,kd in commamd prompt window"? Do you want to assign values to kp, ki, kd?
Raj
Raj 2019년 9월 13일
Your question title and description are not related at all. What exactly are you looking for? You want to implement the transfer function in Simulink and give values of kp,ki,kd from command prompt window?
yes excatly correct

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

답변 (0개)

카테고리

태그

질문:

2019년 9월 12일

댓글:

2019년 9월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by