blob: 4c67a191bdb24ccd48a3188ea9f47b41c4a8f7f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
clear;
clc;
matrix = load('-ascii', "output.txt");
hist(matrix,unique(matrix));
hold on;
[a,b] = hist(matrix,unique(matrix))
plot(b, a)
hold off;
sum(matrix)
average = sum(matrix) / length(matrix)
|