Question
P=[1 3 2]; r=roots(P);
a.
r=[-2,-2]
b.
r=[-2 -1]
c.
There is an error in the code
d.
r = -2
-1
Posted under MATLAB
-1
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output for the below block of code?
Similar Questions
Discover Related MCQs
Q. Name the functions used, for multiplication and division of two polynomials in MATLAB.
View solution
Q. How can the formulation of polynomial be done from its roots?
View solution
Q. The function to evaluate the value of a polynomial,l for a constant value of the independent variable(say a) in the polynomial is ______
View solution
Q. What is the disadvantage of the whos function in MATLAB?
View solution
Q. What is the replacement for the whos function?
View solution
Q. What does the Workspace show?
View solution
Q. What is the size of double and symbolic variables holding integer constants?
View solution
Q. What is the difference between who and whos command?
View solution
Q. How would you express a pi as a character and an integer? Choose the correct code.
View solution
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
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!