function luku=mediaani(v)
v=sort(v);
n=length(v);
i=(n+1)/2;i1=floor(i);i2=ceil(i);
luku=(v(i1)+v(i2))/2;