Logo

Matlab Questions Set 18:

Quiz Mode

 sym ‘x’ makes the declaration short-lasting 

1
2

Solution:

 The clipboard command allows the user to only copy and paste 

1
2

Solution:

 

A = [1 0 2] ; b = [3 0 7] ; c=a.%b;

1
2
3
4

Solution:

 For a homogeneous system, Cramer’s rule will always yield a trivial solution in MATLAB 

1
2

Solution:

 Which operator is used to get the complex conjugate transpose of a matrix ?

1
2
3
4

Solution:

What is the value of r and c for the following MATLAB code?

A = [1:4; 5:8 ; 8:12];

[r, c] = size(A);

1
2
3
4

Solution:

What will be the output for the following block of code?

P = [1 3 2]; r = roots(P);

1
2
3
4

Solution:

What is the output of the following MATLAB code?

A=[1 2 3; 4 5 6; 7 8 9];

if( nzmax(A)==nzmax(spones(A)) ) disp('Yeah !')

1
2
3
4

Solution:

How can a polynomial be formulated from its roots?

1
2
3
4

Solution:

Statement 1- The Parallel Computing Toolbox provides the rand command 

Statement 2- The Signal Processing Toolbox provides the rand command  

Statement 3-  Symbolic Math Toolbox provides the rand command 

1
2
3
4

Solution: