The sum function will return a NaN if any of the element in the input vector is NaN.

The sum function will return a NaN if any of the element in the input vector is NaN. Correct Answer False

We can write ‘omitNaN’ within the sum function so that while computing sum, the function ignores every NaN element present within the input vector. Eg: A=;sum(A,’omitNaN’)- This will return 3 as answer.

Related Questions

Consider a system described by ẋ = Ax + Bu y = Cx + Du The system is completely output controllable if and only if Where: x = State vector (n-vector) u = Control vector (r-vector) y = Output vector (m-vector) A = n × n matrix B = n × r matrix C = m × n matrix D = m × r matrix