diff options
Diffstat (limited to '165/CH1/EX1.5')
-rw-r--r-- | 165/CH1/EX1.5/ex1_5.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/165/CH1/EX1.5/ex1_5.sce b/165/CH1/EX1.5/ex1_5.sce new file mode 100644 index 000000000..de951336e --- /dev/null +++ b/165/CH1/EX1.5/ex1_5.sce @@ -0,0 +1,11 @@ +//Example 1.5
+clc;
+d_dev=[];
+Xn=[49.7,50.1,50.2,49.6,49.7]; //Given Data
+X=mean(Xn); //Mean
+for i=1:5
+ d=Xn(1,i)-X;
+ d_dev=[d_dev,abs(d)];
+end
+Davg=mean(d_dev);
+disp(Davg,'Average deviation')
\ No newline at end of file |