blob: 8390c05ff828060ea5ed77b3f23fa77bb5aaa923 (
plain)
1
2
3
4
5
6
7
8
9
|
//Chapter-12, Example 12.18, Page 365
//=============================================================================
clc
clear
//During the positive half of the input signal,the diode conducts and acts like a short circuit.Now,the output voltage,V0=0V.The capacitor is charged to 12V with polarities and it behaves like a battery.
//during the negative half of the input signal,the diode does not conduct and acts like an open circuit.Hence the output voltage ,V0=-24V.This gives negatively clamped voltage.
mprintf("V0=0V\n")
mprintf("output voltage V0=-24V")
//=================================END OF PROGRAM=======================================================================================================
|