adplus-dvertising
frame-decoration

Question

What is the difference between the two codes?
a> P=[91,’pi’];
b> Q=[91,pi];

a.

Code a initialises P as a character array while code b initialises Q as an integer array

b.

Both P and Q will be integer arrays

c.

Code b initialises P as a character array while code a initialises Q as an integer array

d.

Both P and Q will be character arrays

Posted under MATLAB

Answer: (a).Code a initialises P as a character array while code b initialises Q as an integer array

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 difference between the two codes?

Similar Questions

Discover Related MCQs

Q. What kind of a plot is this?

Q. MATLAB stands for?

Q. Which command is used to clear a command window?

Q. To determine whether an input is MATLAB keyword, command is?

Q. Command used to display the value of variable x.

Q. Command is used to save command window text to file.

Q. To stop the execution of a MATLAB command, used keys?

Q. Which is the invalid variable name in MATLAB?

Q. What is the difference between syms ‘x’ and sym ‘x’?

Q. In the function vpa(‘9⁸¹’,10), why do we put 9⁸¹ within inverted commas?

Q. How would you simplify log(x²⁰) – log(x¹³) – log(x⁷) in MATLAB? (Assume x is defined as a string variable)

Q. What happens if we don’t assign a variable to an expression which evaluates a numerical value?

Q. MATLAB sees a ________ ordered variable as a vector of dimension n*1.

Q. Name the functions used, for multiplication and division of two polynomials in MATLAB.

Q. How can the formulation of polynomial be done from its roots?

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 ______

Q. What is the disadvantage of the whos function in MATLAB?

Q. What is the replacement for the whos function?

Q. What does the Workspace show?

Q. What is the size of double and symbolic variables holding integer constants?