blob: b9f24a342c66c39db4bf8de694100ac4ee6eccd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
//input
b=50;//current gain
rl=10;//load resistance in kilo ohms
rint=6.5;//internal resistance of an alternating source in kilo ohms
rinp=1;//input resistance in kiloohms
//calculations
v=(rl*b)/(rint+rinp);//voltage gain
//output
mprintf('the voltage gain under given conditions will be %3.0f',v)
|