0
0
Simulinkdata~10 mins

Rectifier simulation 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 define the input AC voltage source in Simulink.

Simulink
input_voltage = [1](2*pi*50*t);
Drag options to blanks, or click blank then click option'
Acos
Btan
Csin
Dlog
Attempts:
3 left
💡 Hint
Common Mistakes
Using cosine instead of sine changes the phase but still works, but sine is standard here.
Using tangent or logarithm functions will cause errors or incorrect waveforms.
2fill in blank
medium

Complete the code to calculate the peak voltage from the RMS voltage.

Simulink
peak_voltage = [1] * rms_voltage;
Drag options to blanks, or click blank then click option'
A3.1415
B0.707
C2
D1.414
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0.707 instead of 1.414 reverses the conversion.
Using π or 2 are unrelated to this conversion.
3fill in blank
hard

Fix the error in the code to simulate a full-wave rectifier output voltage.

Simulink
output_voltage = abs([1]);
Drag options to blanks, or click blank then click option'
A-input_voltage
Binput_voltage
Csin(input_voltage)
Dcos(input_voltage)
Attempts:
3 left
💡 Hint
Common Mistakes
Using negative input voltage reverses the waveform incorrectly.
Applying sine or cosine to input voltage is incorrect.
4fill in blank
hard

Fill both blanks to create a dictionary of output voltage and current for each time point.

Simulink
results = {t: ([1], [2]) for t in time_points}
Drag options to blanks, or click blank then click option'
Aoutput_voltage[t]
Binput_current[t]
Coutput_current[t]
Dinput_voltage[t]
Attempts:
3 left
💡 Hint
Common Mistakes
Using input current or input voltage instead of output values.
Mixing voltage and current from different points.
5fill in blank
hard

Fill all three blanks to filter output voltages above a threshold and create a summary dictionary.

Simulink
summary = {t: [1] for t, [2] in results.items() if [3] > threshold}
Drag options to blanks, or click blank then click option'
Av
B(v, i)
Di
Attempts:
3 left
💡 Hint
Common Mistakes
Using current instead of voltage for filtering.
Returning both voltage and current instead of voltage only.