>Oz Nahum Tiram <nahumoz <at> gmail.com> writes: <snip> >octave:9> s=sum(abs(a-b)/a) Hi, Please note that / is not an element-wise operator in Octave. Rather it is "right division" like (pinv(a')* abs(a- b)')'. Octaves element-wise operator ./ may agree with numpy. Regards, eat