- #1
magnifik
- 360
- 0
i am trying to plot the output of a function given the transfer function and an input. however, i am having trouble with trying to express the input as a function in MATLAB
my transfer function is
m = 1;
b = 2;
k = 1000;
num = [ 1000 ];
den = [ m b k ];
transferfunction = tf(num, den)
so it's equal to H(s) = 1000/(s^2 + s + 1000)
i am given that the input is 1 from 0 < t < 10 and 0 elsewhere
i know that x(t) in terms if unit step is x(t) = U(t)*U(10 - t) --- how do i express this in MATLAB?
after this, my plan is to do q = ilaplace(transferfunction) and conv(q, x) to get the output. is this a correct method?
my transfer function is
m = 1;
b = 2;
k = 1000;
num = [ 1000 ];
den = [ m b k ];
transferfunction = tf(num, den)
so it's equal to H(s) = 1000/(s^2 + s + 1000)
i am given that the input is 1 from 0 < t < 10 and 0 elsewhere
i know that x(t) in terms if unit step is x(t) = U(t)*U(10 - t) --- how do i express this in MATLAB?
after this, my plan is to do q = ilaplace(transferfunction) and conv(q, x) to get the output. is this a correct method?