blob: 48c6458777d7ed7504216a76c2deb3709fbc3115 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clear;
clc;
//Example 2.2
//full wave rectifier circuit with 60Hz input signal
V_M=10;//(V)peak output voltage
R=0.01;//(MOhm)output load resistance
f=60;//Hz
V_r=0.2;//(V)ripple voltage
C=V_M/(2*f*R*V_r);//capacitance
printf('\ncapacitance=%f microF\n',C)
|