tests the matrix avg func

This commit is contained in:
Loic Delattre 2023-02-06 15:08:23 +01:00
parent 1b5d328bbd
commit e847f2f25e
1 changed files with 16 additions and 0 deletions

16
test_file.m Normal file
View File

@ -0,0 +1,16 @@
clear all
close all
clc
threshold = 1e-6;
image = 'frames/frame0.jpg';
%TEST 1
%Average of all the items inside of a matrix
A = [1, 2; 3, 4];
avg = 2.5;
if matrix_avg (A) - avg < threshold
disp('Test 1 passed gg')
else
disp('Test 1 failed, f')
endif