Logo

Matlab Questions Set 16:

Quiz Mode

What is the output of the following code?

sumsqr([1 2; 'NaN' 4])

1
2

Solution:

Which command can be used for single-step execution in debugging mode?

1
2
3
4

Solution:

What is the output of the following MATLAB code?

syms s;
ztrans('n',s)

1
2
3
4

Solution:

What is the output of the following MATLAB code?

a=1:3;
c=a.^4;

1
2
3
4

Solution:

What is the output of the following code?

if(1)
p = 9;
end

1
2
3
4

Solution:

What will be the output of the following code?

if(cos(Inf)==NaN)
p=1;
end

1
2
3
4

Solution:

What is the output of the following Z-transform expression?

ztrans('[1 0 1 0 1]', z)

1
2
3
4

Solution:

If the 'solve' function does not return any solution, what does it imply?

1
2
3
4

Solution:

What is the output of the following MATLAB code?

matlab.addons.toolbox.installToolbox('Lo.mltbx')

1
2
3
4

Solution: