It seems you're trying to compute a dot product. Try dot(M[:,1], M[:,1]) or 
norm(M[:,1]). Of course, as a side comment, that quantity can't be negative ;).

Reply via email to