adplus-dvertising
frame-decoration

Question

What will be the output of the following code?
A=100; if(A>99) clear A; end

a.

A never gets stored in MATLAB

b.

A is first stored and then removed from workspace

c.

Error

d.

A is retained in the workspace

Posted under MATLAB Basics MATLAB

Answer: (b).A is first stored and then removed from workspace

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 of the following code?

Similar Questions

Discover Related MCQs

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?

Q. What is the difference between who and whos command?

Q. How would you express a pi as a character and an integer? Choose the correct code.

Q. The uniform distribution can range from -infinity to 0 or 0 to Infinity but not from -infinity to infinity.

Q. If a character input is given to a command which only takes integers, it’ll always give an error.

Q. Which function is preferable to find the magnitude of a complex number?

Q. Which is an escape sequence constant?

Q. All MATLAB computations are done in

Q. Which symbol is used to initialise a variable?

Q. Choose the correct option.

Q. What operator helps in the transpose of a matrix?

Q. What is the difference between the expressions (9*1-8) and (9-1*8)?

Q. The expression cos(90) is equal to1 in MATLAB.

Q. What is the syntax to solve simultaneous equations easily?

Q. What is the difference between sqrt(10) and sqrt(sym(10))?

Q. The solve[] command can do which of the following things?

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?

Q. What happens if dsolve does not return any numerical solution?