Logo

Matlab Questions Set 41:

Quiz Mode

 

syms x;limit((((Inf*x)-cos(x))/(x^2)),x,0)

1
2
3
4

Solution:

 The help command works only for a pre-defined function in MATLAB 

1
2

Solution:

  In chebwin(L,r), what is the default value of r 

1
2
3
4

Solution:

  We need to define a function separately to find the factorial of a number 

1
2

Solution:

 What is the default return type of the rand command 

1
2
3
4

Solution:

  A loop is used to avoid repetitive writing of the same function in the code 

1
2

Solution:

 The ellipord command is used for 

1
2
3
4

Solution:

 The ‘look for’ command is used to return a particular function or set of functions whose name matches with the keyword entered in along with the ‘look for’ command. 

1
2

Solution:

What will be the output when a MATLAB script with the following commands is run?


clc

a=[1:1:5];

b=[2:2:10];

c=a.*b;

1
2
3
4

Solution:

 

a=10; b=10; c=’pi’; whos

1
2
3
4

Solution: