x = ABGSum(100000,4e-4); % 100000 odbiraka suma snage 0.4mW fs = 1e3; % Hz t=(0:length(x))/fs; % vektor vremenske ose sa rezolucijom Ts=1/fs figure(1) plot(t(1:100),x(1:100)) % prvih 100 odbiraka figure(2) hist(x,100) % histogram u 100 tacaka % normalizacija histograma [h xi] = hist(x,100); % histogram u 100 tacaka dx = abs(xi(1)-xi(2)); n = length(x); % P(x