Graphs: (1) A V Cos (WT-BX)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

Graphs

[1] A=V+cos(wt-bx)
>> x=25
x=
25
>> t=[1:1:20]
t=
Columns 1 through 16
1

9 10 11 12 13 14 15 16

Columns 17 through 20
17 18 19 20
>> w=10
w=
10
>> b=5
b=
5
>> z=w*t-b*x
z=
Columns 1 through 15
-115 -105 -95 -85 -75 -65 -55 -45 -35 -25 -15 -5

5 15 25

Columns 16 through 20
35 45 55 65 75
>> y=z*0.01745
y=
Columns 1 through 9
-2.0067 -1.8322 -1.6578 -1.4833 -1.3088 -1.1343 -0.9597 -0.7853 -0.6108
Columns 10 through 18
-0.4363 -0.2617 -0.0872 0.0872 0.2617 0.4363 0.6108 0.7853 0.9597
Columns 19 through 20
1.1343 1.3088
>> v=2
v=
2
>> s=cos(y)
s=
Columns 1 through 9
-0.4223 -0.2585 -0.0868 0.0874 0.2591 0.4228 0.5737 0.7072 0.8192
Columns 10 through 18
0.9063 0.9659 0.9962 0.9962 0.9659 0.9063 0.8192 0.7072 0.5737
Columns 19 through 20
0.4228 0.2591

>> q=v*s
q=
Columns 1 through 9
-0.8446 -0.5170 -0.1737 0.1749 0.5181 0.8456 1.1474 1.4144 1.6384
Columns 10 through 18
1.8127 1.9319 1.9924 1.9924 1.9319 1.8127 1.6384 1.4144 1.1474
Columns 19 through 20
0.8456 0.5181
>> x=50
x=
50
>> t=[1:1:20]
t=
Columns 1 through 15
1

Columns 16 through 20
16 17 18 19 20
>> w=10
w=
10
>> b=5

9 10 11 12 13 14 15

b=
5
>> z=w*t-b*x
z=
Columns 1 through 15
-240 -230 -220 -210 -200 -190 -180 -170 -160 -150 -140 -130 -120 -110 -100
Columns 16 through 20
-90 -80 -70 -60 -50
>> y=z*0.01745
y=
Columns 1 through 9
-4.1880 -4.0135 -3.8390 -3.6645 -3.4900 -3.3155 -3.1410 -2.9665 -2.7920
Columns 10 through 18
-2.6175 -2.4430 -2.2685 -2.0940 -1.9195 -1.7450 -1.5705 -1.3960 -1.2215
Columns 19 through 20
-1.0470 -0.8725
>> v=2
v=
2
>> s=cos(y)
s=

Columns 1 through 9
-0.5007 -0.6434 -0.7665 -0.8664 -0.9399 -0.9849 -1.0000 -0.9847 -0.9395
Columns 10 through 18
-0.8658 -0.7657 -0.6425 -0.4997 -0.3417 -0.1733 0.0003 0.1739 0.3422
Columns 19 through 20
0.5002 0.6429
>> r=v*s
r=
Columns 1 through 9
-1.0014 -1.2867 -1.5330 -1.7327 -1.8798 -1.9698 -2.0000 -1.9694 -1.8790
Columns 10 through 18
-1.7316 -1.5315 -1.2849 -0.9993 -0.6834 -0.3466 0.0006 0.3478 0.6845
Columns 19 through 20
1.0003 1.2858
>> x=75
x=
75
>> t=[1:1:20]
t=
Columns 1 through 15
1

9 10 11 12 13 14 15

Columns 16 through 20
16 17 18 19 20
>> w=10
w=
10
>> b=5
b=
5
>> z=w*t-b*x
z=
Columns 1 through 15
-365 -355 -345 -335 -325 -315 -305 -295 -285 -275 -265 -255 -245 -235 -225
Columns 16 through 20
-215 -205 -195 -185 -175
>> y=z*0.01745
y=
Columns 1 through 9
-6.3693 -6.1948 -6.0202 -5.8457 -5.6712 -5.4968 -5.3223 -5.1478 -4.9733
Columns 10 through 18
-4.7988 -4.6243 -4.4497 -4.2752 -4.1007 -3.9263 -3.7517 -3.5773 -3.4028
Columns 19 through 20

-3.2283 -3.0538
>> v=2
v=
2
>> s=cos(y)
s=
Columns 1 through 9
0.9963 0.9961 0.9656 0.9058 0.8185 0.7064 0.5728 0.4217 0.2579
Columns 10 through 18
0.0863 -0.0880 -0.2596 -0.4233 -0.5742 -0.7076 -0.8196 -0.9066 -0.9661
Columns 19 through 20
-0.9962 -0.9961
>> u=v*s
u=
Columns 1 through 9
1.9926 1.9922 1.9313 1.8117 1.6371 1.4127 1.1455 0.8435 0.5158
Columns 10 through 18
0.1725 -0.1760 -0.5193 -0.8467 -1.1484 -1.4153 -1.6391 -1.8132 -1.9322
Columns 19 through 20
-1.9925 -1.9923
>> plot(t,q,'.',t,r,'-',t,u,'--')
>> grid on

2
1.5
1
0.5
0
-0.5
-1
-1.5
-2

10

12

Fig 1.

[2] B=V+cos(wt+bx)
>>x=20
x=
20
>> t=[1:1:20]
t=
Columns 1 through 15
1

Columns 16 through 20
16 17 18 19 20

9 10 11 12 13 14 15

14

16

18

20

>> w=10
w=
10
>> b=5
b=
5
>> z=w*t+b*x
z=
Columns 1 through 15
110 120 130 140 150 160 170 180 190 200 210 220 230 240 250
Columns 16 through 20
260 270 280 290 300
>> y=z*0.01745
y=
Columns 1 through 9
1.9195 2.0940 2.2685 2.4430 2.6175 2.7920 2.9665 3.1410 3.3155
Columns 10 through 18
3.4900 3.6645 3.8390 4.0135 4.1880 4.3625 4.5370 4.7115 4.8860
Columns 19 through 20
5.0605 5.2350
>> v=2

v=
2
>> s=cos(y)
s=
Columns 1 through 9
-0.3417 -0.4997 -0.6425 -0.7657 -0.8658 -0.9395 -0.9847 -1.0000 -0.9849
Columns 10 through 18
-0.9399 -0.8664 -0.7665 -0.6434 -0.5007 -0.3428 -0.1745 -0.0009 0.1727
Columns 19 through 20
0.3411 0.4991
>> q=v*s
q=
Columns 1 through 9
-0.6834 -0.9993 -1.2849 -1.5315 -1.7316 -1.8790 -1.9694 -2.0000 -1.9698
Columns 10 through 18
-1.8798 -1.7327 -1.5330 -1.2867 -1.0014 -0.6856 -0.3490 -0.0018 0.3455
Columns 19 through 20
0.6822 0.9983
>> x=40
x=
40

>> t=[1:1:20]
t=
Columns 1 through 15
1

9 10 11 12 13 14 15

Columns 16 through 20
16 17 18 19 20
>> w=10
w=
10
>> b=5
b=
5
>> z=w*t+b*x
z=
Columns 1 through 15
210 220 230 240 250 260 270 280 290 300 310 320 330 340 350
Columns 16 through 20
360 370 380 390 400
>> y=z*0.01745
y=
Columns 1 through 9

3.6645 3.8390 4.0135 4.1880 4.3625 4.5370 4.7115 4.8860 5.0605


Columns 10 through 18
5.2350 5.4095 5.5840 5.7585 5.9330 6.1075 6.2820 6.4565 6.6310
Columns 19 through 20
6.8055 6.9800
>> v=2
v=
2
>> s=cos(y)
s=
Columns 1 through 9
-0.8664 -0.7665 -0.6434 -0.5007 -0.3428 -0.1745 -0.0009 0.1727 0.3411
Columns 10 through 18
0.4991 0.6420 0.7654 0.8655 0.9393 0.9846 1.0000 0.9850 0.9401
Columns 19 through 20
0.8667 0.7669
>> r=v*s
r=
Columns 1 through 9
-1.7327 -1.5330 -1.2867 -1.0014 -0.6856 -0.3490 -0.0018 0.3455 0.6822
Columns 10 through 18

0.9983 1.2840 1.5307 1.7310 1.8786 1.9692 2.0000 1.9700 1.8802


Columns 19 through 20
1.7333 1.5338
>> x=60
x=
60
>> t=[1:1:20]
t=
Columns 1 through 15
1

Columns 16 through 20
16 17 18 19 20
>> w=10
w=
10
>> b=5
b=
5
>> z=w*t+b*x
z=
Columns 1 through 15

9 10 11 12 13 14 15

310 320 330 340 350 360 370 380 390 400 410 420 430 440 450
Columns 16 through 20
460 470 480 490 500
>> y=z*0.01745
y=
Columns 1 through 9
5.4095 5.5840 5.7585 5.9330 6.1075 6.2820 6.4565 6.6310 6.8055
Columns 10 through 18
6.9800 7.1545 7.3290 7.5035 7.6780 7.8525 8.0270 8.2015 8.3760
Columns 19 through 20
8.5505 8.7250
>> v=2
v=
2
>> s=cos(y)
s=
Columns 1 through 9
0.6420 0.7654 0.8655 0.9393 0.9846 1.0000 0.9850 0.9401 0.8667
Columns 10 through 18
0.7669 0.6438 0.5012 0.3434 0.1751 0.0015 -0.1722 -0.3406 -0.4986
Columns 19 through 20

-0.6416 -0.7650
>> u=v*s
u=
Columns 1 through 9
1.2840 1.5307 1.7310 1.8786 1.9692 2.0000 1.9700 1.8802 1.7333
Columns 10 through 18
1.5338 1.2876 1.0024 0.6867 0.3501 0.0030 -0.3443 -0.6811 -0.9973
Columns 19 through 20
-1.2831 -1.5300
>> plot(t,q,'.',t,r,'-',t,u,'--')
>> grid on

2
1.5
1
0.5
0
-0.5
-1
-1.5
-2

10

Fig 2.

12

14

16

18

20

You might also like