blob: 1f6937a422ecf372115736e69299db3f49237c6f (
plain)
1
2
3
4
5
6
7
8
9
|
clc;
clear;
Vin=20*10^-6;
Vout=100*10^-3;
A1=45000;//A1 isAmplifier gain
AT=Vout/Vin;//AT is Total gain
printf('\nTotal gain is %.3f',AT);
A2=AT/A1;//A2 is attenuation factor
printf('\nThe atenuation factor needed to to keep the output \nvoltage from exceeding 100 mv is %.4f',A2);
|