Logo

Matlab Questions Set 30:

Quiz Mode

 

p=input[''];

1
2
3
4

Solution:

  What is the default increment value in a for-loop 

1
2
3
4

Solution:

c1 = {[1 2] , [4 5]};

c2 = c1;

c1{1,1} = 'hello';

out = c2{1,1}

1
2
3
4

Solution:

  What is the size of double variables holding integer constants 

1
2
3
4

Solution:

 The size of the sparse matrix will be ___ the original matrix 

1
2
3
4

Solution:

Which command helps to list all the breakpoints in a function during debugging?

1
2
3
4

Solution:

What is the output of the following code? 

t=0:0.001*pi:pi/2;
plot(t,sin(t),*);

1
2
3
4

Solution:

 

plot(linspace[0,3*pi],square[linspace[0,3*pi]]);

1
2
3
4

Solution:

What is the MATLAB syntax to solve simultaneous equations easily?

1
2
3
4

Solution:

What does the MATLAB command spones(A) do, where A is the matrix:

A = [1 2 3; 32 23 26; 0 0 0]

1
2
3
4

Solution: