Consider a first-order system with transfer function H(s) = 1 / (s + 2). You apply a unit step input at time t=0. What is the output value at t = 1 second?
sys = tf([1], [1, 2]); [y, t] = step(sys, 1); y_end = y(end);
Recall the step response of a first-order system is 1 - exp(-a*t), where a is the coefficient in the denominator.
The system has a time constant τ = 1/2 = 0.5 seconds. The step response at t=1 is 1 - exp(-2*1) ≈ 0.865.
You simulate a first-order system with a time vector from 0 to 5 seconds with 0.1 second intervals. How many data points will the output vector contain?
t = 0:0.1:5; num_points = length(t);
Count how many points are in the range including both start and end.
The vector from 0 to 5 with step 0.1 includes both ends, so number of points = (5 - 0)/0.1 + 1 = 51.
Which option produces the correct plot of the step response for the system H(s) = 5 / (s + 5) over 0 to 2 seconds?
sys = tf([5], [1, 5]); step(sys, 0:0.01:2);
Calculate the steady-state value and the time constant.
The steady-state value is the DC gain = 5/5 = 1. The step response reaches 1 - exp(-5*2) ≈ 1 at t=2.
What error does the following Simulink MATLAB code produce?
sys = tf([1], [1 0]); [y, t] = step(sys, 0:0.1:5);
sys = tf([1], [1 0]); [y, t] = step(sys, 0:0.1:5);
Check the denominator polynomial and system stability.
The denominator [1 0] means the system has a pole at zero, making it unstable and step response undefined.
You have simulation output data of a first-order system step response. The output reaches 63.2% of its final value at 0.8 seconds. What is the system's time constant?
The time constant is the time when output reaches 63.2% of final value.
By definition, the time constant τ is the time at which the step response reaches 63.2% of its final value, so τ = 0.8 seconds.
