Logo

Matlab Questions Set 23:

Quiz Mode

 

atan2(-1,1)

1
2
3
4

Solution:

 

nzmax(spconvert([1 2 3; 4 5 6; 7 8 9])

Solution:

 The function ‘who’ shows the names of the variables used. 

1
2

Solution:

 In a 2-d Plot, which command will make the axes of the graph same 

1
2
3
4

Solution:

 

What is the class of the variable r after the following code is run?

r=rand(1,4,’double’)

1
2
3
4

Solution:

 Predominantly, what are the two kinds of errors in MATLAB programs 

1
2
3
4

Solution:

What is the output of the following MATLAB code?

A = 1:5;
B = cumprod(A);

1
2
3
4

Solution:

predict the error

 

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

1
2
3
4

Solution:

Statement 1- Command window  is the replacement for the whos function 

Statement 2-  Current folder window   is the replacement for the whos function 

Statement 3-  Workspace window   is the replacement for the whos function 



1
2
3
4

Solution:

 Statement 1- To determine whether an input is MATLAB keyword, the command is input word

Statement 2-  To determine whether an input is MATLAB keyword, the command is isvarname

Statement 3-  To determine whether an input is MATLAB keyword, the command is iskeyword

1
2
3
4

Solution: