blob: d4b1dc6c2d0239955092c3ba740cb53d29371a8e (
plain)
1
2
3
4
5
6
7
8
|
// Exa 2.24
format('v',7);clc;clear;close;
// Given data
At = 6.54;//true value in A
Am = 6.7;//measured value in A
AbsError = At-Am;// absolute error
PerError= ((At-Am)/At)*100;// percentage error
disp(PerError,"The error in % is");
|