Question
sumsqr([1 2; 'NaN' 4])
a.
21
b.
Error due to NaN
c.
Error due to ‘NaN’
d.
9
Posted under MATLAB
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. The uniform distribution can range from -infinity to 0 or 0 to Infinity but not from -infinity to infinity.
View solution
Q. If a character input is given to a command which only takes integers, it’ll always give an error.
View solution
Q. Which function is preferable to find the magnitude of a complex number?
View solution
Q. Which is an escape sequence constant?
View solution
Q. All MATLAB computations are done in
View solution
Q. Which symbol is used to initialise a variable?
View solution
Q. Choose the correct option.
View solution
Q. What operator helps in the transpose of a matrix?
View solution
Q. What is the difference between the expressions (9*1-8) and (9-1*8)?
View solution
Q. The expression cos(90) is equal to1 in MATLAB.
View solution
Q. What is the syntax to solve simultaneous equations easily?
View solution
Q. What is the difference between sqrt(10) and sqrt(sym(10))?
View solution
Q. The solve[] command can do which of the following things?
View solution
Q. A student has to find the solution of an equation cos(x)=1/2. She has to write the program such that exact values are shown at output. Which of the following codes would help her?
View solution
Q. What happens if dsolve does not return any numerical solution?
View solution
Q. If solve does not return any solution, what does it imply?
View solution
Q. Vectors depend upon brackets while scalars don’t.
View solution
Q. To see the sub-matrix with aᵢⱼ for 2<=i<=4 and 1<=j<=2 of a matrix a, of order 5*6, which code is used?
View solution
Q. Which code shows the use of ellipsis in MATLAB?
View solution
Q. What is the symbol used to evaluate the transpose of a vector?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MATLAB? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!