blob: 4b2cb87c47ec64f56e132ad68e92e6750f92c759 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// example 4-6 in page 100
clc;
// data give
Eb=1.5;// Full scale voltage in volts
R1=1e+3;//R1=1 K-ohm
//calculation
for n=1:2
E=Eb*(n/3);// 1/3rd and 2/3rd value of full scale
Rx=R1/((Eb/E)-1);
printf("at %d/3 FSD, Rx=%d ohm\n",n,Rx)
end
|