blob: e867e98717b5d89773957f4662f4839869e60acd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 10.1(a)//
clc
//clears the screen//
clear
//clears all variables//
g=2^8;
//for easier calculation//
V=20*(10^-3)*g;
//voltage corresponding to logic 1//
fs=(g-1)/g*V;
//full scale output formula//
disp(fs,'Full scale output (in V) =')
//in volts//
|