1.

The functioning of all() and any() is same.(a) True(b) FalseI have been asked this question during a job interview.I'm obligated to ask this question of Logical Expressions in portion MATLAB Programming of MATLAB

Answer» RIGHT ANSWER is (b) False

Explanation: The all() FUNCTION returns a 1 IFF all the elements in the input vector is non-zero. The any() function returns a 1 iff at least 1 element in the input vector is non-zero. Hence, they are different in FUNCTIONING.


Discussion

No Comment Found

Related InterviewSolutions