What is the output of the following code? [code]t=0:.001*pi:2*pi; plot(cos(t),sin(t))[/code]

What is the output of the following code?
Code:
t=0:.001*pi:2*pi;
plot(cos(t),sin(t))
A. A circle
B. A straight line
C. A unit circle
D. A sinusoid
 
Answer: c
Explanation: The above code generates the unit circle which is used to define the z-plane. The graph is plotted between the values of cos(t) and sin(t) over their respective time period. It won’t generate a sinusoid or a straight line.
 

Tìm kiếm

Back
Top