Logo

Matlab Questions Set 13:

Quiz Mode

To represent only two digits after the decimal point, the format we use is _____

1
2
3
4

Solution:

predict the error

 

g = inline(‘3x+5*x’, ‘t’)

1
2
3
4

Solution:

  What is the size of symbolic variables holding integer constants 

1
2
3
4

Solution:

The largest and smallest values for the 8-bit integer data type (int8) are 127 and -128, respectively.

1
2

Solution:

How many times will the following loop run?

for i=1:5
if(i<3) break
end

1
2
3
4

Solution:

How to add a title to describe the subplots generated in MATLAB?

1
2
3
4

Solution:

  How can we check in MATLAB if an electrical circuit is linear or not 

1
2
3
4

Solution:

What type of plot would you use to show comparisons of profit across 3 industries over 3 quarters?

1
2
3
4

Solution:

Predict the error, if any, that MATLAB will generate in the following line of code:

g = inline('3^x+5*x', 't')

1
2
3
4

Solution:

What is the error in the code?

a = [[1, 2]; [2, 3]]

1
2
3
4

Solution: