Simulink/Differential Equation question with unit step inputs

조회 수: 8 (최근 30일)
Sullman
Sullman 2012년 12월 3일
Was wondering if I could get some help solving this HW question. Consider the following differential equation with 2 inputs (u1 and u2) and one output(y) y¨+ 2y˙ + y = 3u1 - u2 Set u1 to be a unit step input acting from t = 1 and u2 a unit step input acting from t = 2. Prepare a Simulink diagram to plot the response of y to these inputs for t = 0 to t = 5, starting with zero initial conditions (find a transfer function from v = 3u1 - u2 to y and use a summing node at the input.
I derived the transfer function as 1/s^2+2s+1 but how do I put it into simulink.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 4일
Use a transfer function block from simulink/continuous, and set Numerator and Denominator block:
N=[1]
D=[1 2 1]
If you want your step signal to start at 1 sec set it's step time at 1

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by