More Related Content
More from Ashok Singh (20)
Sine
- 1. PROGRAM:-2
AIM :-
Program for the generation of cosine signal.
TOOL REQUIRED:-
MATLAB and computer
PROGRAM:-
t=0:0.01:pi;
y=cos(2*pi*t);
plot(t,y);
ylabel('amplitude');
xlabel('t')
OBSERVATION:-
1
0.8
0.6
0.4
0.2
amplitude
0
-0.2
-0.4
-0.6
-0.8
-1
0 0.5 1 1.5 2 2.5 3 3.5
t
RESULT:-
Graph is drawn.
PRECAUTION:-
1) Write the program carefully.
2) save carefully