blob: f59029ee814b6315c512005e3061d03b92c5e25e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// find phase shift of output voltage
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 21-13, page 833
clear;clc; close;
// Given data
C=100*10^-9;// capacitance in faraday
R=10^3;// resistance in ohms
f=10^3;// frequency in hertz
// Calculations
fo=1/(2*%pi*R*C);// cutoff frequency in hertz
angle=2*atan(fo/f)*180/%pi;// phase shift in degree
disp("degrees",angle,"phase shift=")
// Result
// Phase shift is 116 degrees
|