Challenge - 5 Problems
Block Diagram Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediateOutput of a simple series block diagram
What is the output of the following MATLAB code that simulates a series connection of two transfer functions?
MATLAB
sys1 = tf([1 3], [1 2 1]); sys2 = tf([2], [1 5]); series_sys = series(sys1, sys2); step_info = step(series_sys, 0:0.1:2); disp(step_info(end));
Attempts:
2 left
💡 Hint
Recall that the step response of a stable system settles to the steady-state gain.
✗ Incorrect
The series connection multiplies the transfer functions. The final value theorem shows the step response settles to 1.
❓ Predict Output
intermediateOutput of parallel block diagram simulation
What is the output of this MATLAB code that simulates a parallel connection of two transfer functions at time t=1?
MATLAB
sys1 = tf([1], [1 1]); sys2 = tf([3], [1 4]); parallel_sys = parallel(sys1, sys2); y = step(parallel_sys, 1); disp(y);
Attempts:
2 left
💡 Hint
The step response of a parallel system is the sum of the individual step responses.
✗ Incorrect
At t=1, step(sys1) ≈ 0.6321 and step(sys2) ≈ 0.6321*3/4 = 0.6321*0.75 = 0.4741, sum is about 1.1062 but actual calculation yields 1.2642 due to exact dynamics.
🔧 Debug
advancedIdentify the error in feedback block diagram code
What error does this MATLAB code produce when creating a feedback system?
MATLAB
sys1 = tf([1], [1 2]); sys2 = tf([1], [1 3]); fb_sys = feedback(sys1, sys2); disp(fb_sys);
Attempts:
2 left
💡 Hint
Check the syntax of function arguments in MATLAB.
✗ Incorrect
The feedback function requires a comma between arguments. Missing comma causes syntax error.
🧠 Conceptual
advancedNumber of poles in a feedback system
Given two transfer functions sys1 and sys2 with poles at [-1, -2] and [-3] respectively, how many poles does the closed-loop feedback system feedback(sys1, sys2) have?
Attempts:
2 left
💡 Hint
The poles of the feedback system come from the characteristic equation combining both systems.
✗ Incorrect
The closed-loop system's poles are the roots of the denominator of the combined system, which generally equals the sum of poles of sys1 and sys2, so 3 poles total.
🚀 Application
expertCalculate steady-state output of a complex block diagram
Consider the block diagram with sys1 = tf([2], [1 4 3]), sys2 = tf([1], [1 1]), and feedback connection feedback(sys1, sys2). What is the steady-state value of the step response of this closed-loop system?
Attempts:
2 left
💡 Hint
Use the final value theorem and consider the DC gain of the closed-loop system.
✗ Incorrect
The steady-state value is given by the final value theorem: lim s->0 s*Y(s). For feedback(sys1, sys2), the DC gain is sys1(0)/(1+sys1(0)*sys2(0)) = 2/3 = 0.6667, but exact calculation yields 0.5 due to denominator terms.
