0
0
Simulinkdata~10 mins

Load disturbance response in Simulink - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to simulate the load disturbance response in Simulink.

Simulink
sim('load_disturbance_model', [1])
Drag options to blanks, or click blank then click option'
A'20'
B'30'
C'40'
D'10'
Attempts:
3 left
💡 Hint
Common Mistakes
Using too short simulation time like 10 seconds.
Forgetting to put the simulation time as a string.
2fill in blank
medium

Complete the code to add a step disturbance input at 5 seconds.

Simulink
disturbance = stepinput('Step', 'Time', [1], 'Amplitude', 1);
Drag options to blanks, or click blank then click option'
A5
B3
C7
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Setting disturbance time too early like 3 seconds.
Using a time value not matching the simulation duration.
3fill in blank
hard

Fix the error in the code to correctly plot the load disturbance response.

Simulink
plot(simout.time, [1].signals.values);
Drag options to blanks, or click blank then click option'
Adisturbance
Bload_response
Csimout
Dresponse
Attempts:
3 left
💡 Hint
Common Mistakes
Using the disturbance variable instead of the response.
Using the simulation output object directly without accessing signals.
4fill in blank
hard

Fill both blanks to create a dictionary of response times and overshoot values.

Simulink
response_metrics = [1](time=load_response.time, [2]=load_response.signals.values);
Drag options to blanks, or click blank then click option'
Adict
Blist
Covershoot
Dvalues
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list instead of a dictionary.
Using incorrect keys like 'overshoot' instead of 'values'.
5fill in blank
hard

Fill all three blanks to filter response values greater than 0.5 and create a new dictionary.

Simulink
filtered_response = {k: v for k, v in response_metrics.items() if v[1] [2] and k [3] 'values'}
Drag options to blanks, or click blank then click option'
A>
B0.5
C!=
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using equality instead of inequality for filtering.
Mixing up key and value in the condition.