1.

If a logical expression is true, it will always return a logical 1 and if it’s false, it’ll always return a 0.(a) True(b) FalseThis question was posed to me in an interview.My query is from Logical Expressions topic in section MATLAB Programming of MATLAB

Answer»

Correct choice is (a) True

The BEST explanation: Any logical operation is pre-defined in MATLAB to give a logical 1 if the result DERIVED from the operation is true. If the result is false, the result returned will be a logical 0.



Discussion

No Comment Found

Related InterviewSolutions