blob: f10e2ca238a54872663a9d49cc96da0460ce39ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Example 1.3.b : relative error
clc, clear
// given :
vm=2.65; // in volts
vt=2.70; // in volts
v=5;// full scale range of voltage
Es=vm-vt;
Er1=Es/vt;
Er2=Es/v;
disp("relative error as a function of true value is "+string(Er1)+" or "+string(100*Er1)+" %")
disp("relative error as a function of full scale deflection is "+string(Er2)+" or "+string(100*Er2)+" %")
|