Logo

Matlab Questions Set 24:

Quiz Mode

 

sym x;limit(‘log(x)^(log(x))’,1,’right’)

1
2
3
4

Solution:

 What is the default variable while evaluating a Laplace transform 

1
2
3
4

Solution:

 The int function returns a constant of integration for indefinite integration 

1
2

Solution:

 How to stop the execution of a chain of commands 

1
2
3
4

Solution:

 

 

t=linspace(0,3*pi);p=sin(t);y=cos(t);plot(t,p,t,q);

1
2
3
4

Solution:

What is the output of the following code?

a = 'hello';

b = 'world';

a == b

1
2
3
4

Solution:

 We cannot find the integrator, made with an OP-amp, response using the quad() command at steady state 

1
2

Solution:

What is the result of the following MATLAB code?

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

1
2
3
4

Solution:

What is the output of the following code?

s1 = 'MATLAB';

s1_out = s1(end:-1:1);

s2 = "MATLAB";

s2_out = s2(end:-1:1);

1
2
3
4

Solution:

Statement 1- To display comments of M-file, we use echo on 

Statement 2- To display comments of M-file, we use to comment on  

Statement 3- To display comments of M-file, we use  show %  

1
2
3
4

Solution: