blob: fbb6c19610260947ca7d7459de333d947ce8d57e (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 17.3
close;
clc;
//Given Data
Vin=5; //in volts
Rin=2500; //in ohms
Rf=1000; //in ohms
//Calculation of output voltage
Vo=-Vin*Rf/Rin;
printf('\nOutput Voltage = %.2f V \n',Vo)
|