blob: a4b2bfb704325b883e4e6932b9f6f43a58c68cee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//caption:Find resolution and voltage
//Ex6.5
clc
clear
close
N=3//bit of D/A convertor
V=5//full scale voltage(in V)
A=0.001//magnitude of accuracy
R=1/2^N
disp(R,'resolution(in V)=')
Ac=A*V
disp(Ac,'accuracy(in V)=')
|