Equality results when using a matrix of strings
问题 I don't understand why using == to compare between a string vector and a matrix of strings and the vector is of dimension n , I obtain a matrix of size n * n . I expected it to be of size n only, with a 1 when the string is equal. octave:13> t = ["aha";"bgb";"ctc"] t = aha bgb ctc octave:14> t == "aha" warning: mx_el_eq: automatic broadcasting operation applied ans = 1 1 1 0 0 0 0 0 0 What's going on underneath to explain such result ? And is it possible to do away with the warning: warning: