Why comparing matrices is not evaluated as boolean in Octave?

后端 未结 2 543
别那么骄傲
别那么骄傲 2021-01-26 10:01

Im new to Octave and playing around with the console.

why when comparing matrices, the expression is not evaluates as boolean :

example:

>>         


        
2条回答
  •  渐次进展
    2021-01-26 10:25

    == is for element-wise comparison of two matrices. To check whether two matrices are same or not, use isequal.

提交回复
热议问题