You are on page 1of 1

my_script.

m
1 % AB-CDEFG-H
2 % 18-36958-1
3
4
5 t=-30:.01:30;
6 f=3695
7 rad1=deg2rad(43);
8 j1=sin(rad1);
9 rad2=deg2rad(30);
10 j2=sin(rad2);
11 x1=18*cos(2*pi*f*t+j1);
12 x2=81*cos(2*pi*f*t+j2);
13 x3=x1+x2;
14 subplot(3,1,1);
15 plot(t,x1);
16 axis([-1 1 min(x1) max(x1)])
17 title('wave 1');
18 subplot(3,1,2);
19 plot(t,x2);
20 axis([-1 1 min(x2) max(x2)])
21 title('wave 2');
22 subplot(3,1,3);
23 plot(t,x3);
24 axis([-1 1 min(x3) max(x3)])
25 title('wave 3');

Printed for mactahin70@gmail.com


Powered by Octave Online
http://octave-online.net

You might also like