function k = vergleich(x,y) [n1,m1]=size(x); [n2,m2]=size(y); if n1==1 x=x'; end if n2==1 y=y'; end if max(n1,m1)==max(n2,m2) z= (x>=y); k=sum(z); else disp('Vektoren sind nicht gleicher Länge.') end end