adplus-dvertising
frame-decoration

Question

What is the output of the following code?
sumsqr([1 2; NaN 4])

a.

21

b.

Nan

c.

Error

d.

Inf

Posted under MATLAB

Answer: (a).21

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?

Similar Questions

Discover Related MCQs

Q. To find the absolute value of the sum of squares of numbers in a series, we use_________

Q. We can find the mean value of a series (upto n) using _________

Q. We can find the summation of an A.G.P. series using __________

Q. We need to define a function separately to find the factorial of a number.

Q. The product of a set of elements is always greater than it’s the cumulative sum.

Q. The function to find the R.M.S value is __________

Q. Which function does cumulative summation of elements?

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

Q. The result of cumsum([1,2,3]) and sum([3,3]) are ____________

Q. What is the default variable while evaluating a transfer function?

Q. What is the default variable while evaluating a Laplace transform?

Q. The default variable in case of solve(‘f(x,y,p,a,l)’) command is __________

Q. What is the default parameter for dsolve() command?

Q. What is the default parameter for the ztrans() command?

Q. The default variable, to which the result of any computation.

Q. Butterworth and Low pass filters use _________

Q. The fir1 command can be used to find _____________

Q. The multiplication of two signal in time domain signifies _______

Q. The window function is used to __________

Q. The butter() command takes in ________