You are on page 1of 21

^

^
^

-----------------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------------------

MATLAB statement representing the system:

Example:

If the system is defined as:

Free body diagrams:

Complex conjugate

Command:

impulse(sys) :
y = impulse(sys) :

- plot of unit-impulse response


- no plot, response is represented in y

Impulse input:

- system is subjected to very large force for very short time


- examples: a system hit by a hammer or a bullet
- mathematically such conditions are approximated by an impulse function
- for impulse functions only the magnitude (h t) is relevant not the actual shape

Law of conservation of momentum:


- momentum of a mass m moving at a velocity v is mv
- Newton's second law:

Without any external force


or
this principle is called the law of conservation of momentum.

_
_
_

Obtaining response to arbitrary input


Command:

if initial conditions of the system are zero


lsim(sys, u, t) or lsim(num, den, u, t)
produces the response of a linear, time-invariant system to arbitrary inputs
where u is the input and the results are plotted
alternatively
y = lsim(sys, u, t)
or
[y, t] = lsim(sys, u, t) or

y = lsim(num, den, u, t)
[y, t] = lsim(num, den, u, t)

produces the output response y without plot.


plot of responses of 2 or more systems:
lsim(sys1, sys2, , u, t)

Ramp response
Command:

lsim(sys, u, t)

with u = u(t) = t

------------------------------------------------------------------------------------------------------------------------------------------------------

_
_
_
_
_

_
_

---------------------------------------------------------------------------------------------------------------------------------------------------------HW 3, due date: ___________________________


Problems
B-4-2
B-4-3
B-4-5
B-4-9
B-4-12
B-4-14
B-4-17

You might also like