function W = srednia(dane) % funkcja obliczająca średnią elementów w wektorze W = sum(dane)/length(dane); end