Logo

Matlab Questions Set 14:

Quiz Mode

 

f=1/50; sawtooth(2*pi*1/f*t)

1
2
3
4

Solution:

We cannot use a break statement in the standalone if-else structure.

1
2
3
4

Solution:

What is the output of the following MATLAB code?

syms n; limit((1+1/n)^n, inf, 'right')

1
2
3
4

Solution:

To specify different curves in an angle histogram plot, we use the legend function.

1
2
3
4

Solution:

 What is not displayed by the Workspace 

1
2
3
4

Solution:

What are the two main types of errors in MATLAB programs?

1
2
3
4

Solution:

What are MATLAB MEX files?

1
2
3
4

Solution:

If one operand is a scalar and the other is not, then MATLAB applies the scalar to every element of the other operand. This property is known as ____________

1
2
3
4

Solution:

Find the error in the code below.

f = inline('t.^4', 't'); g = inline('int(t.^4, t)', 't');

1
2
3
4

Solution:

To bring the scale of the x-axis to logarithmically spaced, the student entered 'semilogx()'. What happened?

1
2
3
4

Solution: