My Report

MATLAB Practice Test 5


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. What is the output of the following code?

t=0:.001*pi:2*pi;
plot(cos(t),sin(t))

2. The command used to generate an array of arrows is ________

3. The period of sinusoidal curves can be changed in MATLAB.

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

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

5. Inline functions can be plotted by the _________ command.

6. What is the purpose of the figure command?

7. Which toolbox provides the plot command?

8. What is the output of the following code?

w=[0:.1*pi:2*pi];plot(w,sin(w),’ ’)

9. What is the output of the following command?

T=[-1:1:90];plot(T,T,’G’)

10. The nature of complex input taken by the sparse() command is ______________


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.