Programs for digital signal processing. written using MATLAB
Pages
Showing posts with label sine. Show all posts
Showing posts with label sine. Show all posts
Matlab program to generate a sinusoidal waveform
Program Code
%sinusoidal waveform generation
clc;
clear all;
close all;
f=1000;
t=0:1/(f*1000):2/f;
y=sin(2*pi*f*t);
plot (t,y);
xlabel ('Time');
ylabel ('Amplitude');
title ('Sinusoidal Waveform');
grid on;
clc;
clear all;
close all;
f=1000;
t=0:1/(f*1000):2/f;
y=sin(2*pi*f*t);
plot (t,y);
xlabel ('Time');
ylabel ('Amplitude');
title ('Sinusoidal Waveform');
grid on;
Explanation of Program Code
clc;
It clears all input and
output from the Command Window display giving clean screen. It removes items
from workspace, freeing up system memory. After using clc, the scroll bar
cannot be used to see the history of functions, but still the up arrow can be
used to recall statements from the command history.
clear all;
It removes all variables from
the workspace. This frees up system memory.
close all;
It deletes all figures whose
handles are not hidden.
f=1000;
It stores the value 1000 in
variable f.
t=0:1/(f*1000):2/f;
Here the following vector t
is created.
t= Columns 1 through 5
[ 0
0.0000 0.0000 0.0000
0.0000
Columns 6 through 10
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 11 through 15
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 16 through 20
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 21 through 25
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 26 through 30
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 31 through 35
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 36 through 40
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 41 through 45
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 46 through 50
0.0000
0.0000 0.0000 0.0000
0.0000
Columns 51 through 55
0.0000
0.0001 0.0001 0.0001
0.0001
Columns 56 through 60
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 61 through 65
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 66 through 70
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 71 through 75
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 76 through 80
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 81 through 85
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 86 through 90
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 91 through 95
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 96 through 100
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 101 through 105
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 106 through 110
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 111 through 115
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 116 through 120
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 121 through 125
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 126 through 130
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 131 through 135
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 136 through 140
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 141 through 145
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 146 through 150
0.0001
0.0001 0.0001 0.0001
0.0001
Columns 151 through 155
0.0001
0.0002 0.0002 0.0002
0.0002
Columns 156 through 160
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 161 through 165
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 166 through 170
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 171 through 175
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 176 through 180
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 181 through 185
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 186 through 190
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 191 through 195
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 196 through 200
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 201 through 205
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 206 through 210
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 211 through 215
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 216 through 220
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 221 through 225
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 226 through 230
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 231 through 235
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 236 through 240
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 241 through 245
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 246 through 250
0.0002
0.0002 0.0002 0.0002
0.0002
Columns 251 through 255
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 256 through 260
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 261 through 265
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 266 through 270
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 271 through 275
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 276 through 280
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 281 through 285
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 286 through 290
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 291 through 295
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 296 through 300
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 301 through 305
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 306 through 310
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 311 through 315
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 316 through 320
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 321 through 325
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 326 through 330
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 331 through 335
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 336 through 340
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 341 through 345
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 346 through 350
0.0003
0.0003 0.0003 0.0003
0.0003
Columns 351 through 355
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 356 through 360
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 361 through 365
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 366 through 370
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 371 through 375
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 376 through 380
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 381 through 385
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 386 through 390
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 391 through 395
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 396 through 400
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 401 through 405
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 406 through 410
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 411 through 415
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 416 through 420
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 421 through 425
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 426 through 430
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 431 through 435
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 436 through 440
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 441 through 445
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 446 through 450
0.0004
0.0004 0.0004 0.0004
0.0004
Columns 451 through 455
0.0004
0.0005 0.0005 0.0005
0.0005
Columns 456 through 460
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 461 through 465
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 466 through 470
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 471 through 475
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 476 through 480
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 481 through 485
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 486 through 490
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 491 through 495
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 496 through 500
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 501 through 505
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 506 through 510
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 511 through 515
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 516 through 520
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 521 through 525
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 526 through 530
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 531 through 535
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 536 through 540
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 541 through 545
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 546 through 550
0.0005
0.0005 0.0005 0.0005
0.0005
Columns 551 through 555
0.0005
0.0006 0.0006 0.0006
0.0006
Columns 556 through 560
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 561 through 565
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 566 through 570
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 571 through 575
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 576 through 580
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 581 through 585
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 586 through 590
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 591 through 595
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 596 through 600
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 601 through 605
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 606 through 610
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 611 through 615
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 616 through 620
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 621 through 625
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 626 through 630
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 631 through 635
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 636 through 640
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 641 through 645
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 646 through 650
0.0006
0.0006 0.0006 0.0006
0.0006
Columns 651 through 655
0.0006
0.0007 0.0007 0.0007
0.0007
Columns 656 through 660
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 661 through 665
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 666 through 670
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 671 through 675
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 676 through 680
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 681 through 685
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 686 through 690
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 691 through 695
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 696 through 700
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 701 through 705
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 706 through 710
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 711 through 715
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 716 through 720
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 721 through 725
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 726 through 730
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 731 through 735
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 736 through 740
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 741 through 745
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 746 through 750
0.0007
0.0007 0.0007 0.0007
0.0007
Columns 751 through 755
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 756 through 760
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 761 through 765
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 766 through 770
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 771 through 775
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 776 through 780
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 781 through 785
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 786 through 790
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 791 through 795
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 796 through 800
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 801 through 805
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 806 through 810
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 811 through 815
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 816 through 820
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 821 through 825
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 826 through 830
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 831 through 835
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 836 through 840
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 841 through 845
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 846 through 850
0.0008
0.0008 0.0008 0.0008
0.0008
Columns 851 through 855
0.0008
0.0009 0.0009 0.0009
0.0009
Columns 856 through 860
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 861 through 865
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 866 through 870
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 871 through 875
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 876 through 880
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 881 through 885
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 886 through 890
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 891 through 895
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 896 through 900
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 901 through 905
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 906 through 910
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 911 through 915
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 916 through 920
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 921 through 925
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 926 through 930
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 931 through 935
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 936 through 940
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 941 through 945
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 946 through 950
0.0009
0.0009 0.0009 0.0009
0.0009
Columns 951 through 955
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 956 through 960
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 961 through 965
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 966 through 970
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 971 through 975
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 976 through 980
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 981 through 985
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 986 through 990
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 991 through 995
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 996 through 1000
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1001 through 1005
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1006 through 1010
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1011 through 1015
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1016 through 1020
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1021 through 1025
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1026 through 1030
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1031 through 1035
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1036 through 1040
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1041 through 1045
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1046 through 1050
0.0010
0.0010 0.0010 0.0010
0.0010
Columns 1051 through 1055
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1056 through 1060
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1061 through 1065
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1066 through 1070
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1071 through 1075
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1076 through 1080
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1081 through 1085
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1086 through 1090
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1091 through 1095
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1096 through 1100
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1101 through 1105
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1106 through 1110
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1111 through 1115
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1116 through 1120
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1121 through 1125
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1126 through 1130
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1131 through 1135
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1136 through 1140
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1141 through 1145
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1146 through 1150
0.0011
0.0011 0.0011 0.0011
0.0011
Columns 1151 through 1155
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1156 through 1160
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1161 through 1165
0.0012
0.0012 0.0012
0.0012 0.0012
Columns 1166 through 1170
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1171 through 1175
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1176 through 1180
0.0012
0.0012 0.0012
0.0012 0.0012
Columns 1181 through 1185
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1186 through 1190
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1191 through 1195
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1196 through 1200
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1201 through 1205
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1206 through 1210
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1211 through 1215
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1216 through 1220
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1221 through 1225
0.0012
0.0012 0.0012 0.0012
0.0012
Columns
1226 through 1230
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1231 through 1235
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1236 through 1240
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1241 through 1245
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1246 through 1250
0.0012
0.0012 0.0012 0.0012
0.0012
Columns 1251 through 1255
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1256 through 1260
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1261 through 1265
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1266 through 1270
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1271 through 1275
0.0013 0.0013 0.0013
0.0013 0.0013
Columns 1276 through 1280
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1281 through 1285
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1286 through 1290
0.0013 0.0013
0.0013 0.0013 0.0013
Columns 1291 through 1295
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1296 through 1300
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1301 through 1305
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1306 through 1310
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1311 through 1315
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1316 through 1320
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1321 through 1325
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1326 through 1330
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1331 through 1335
0.0013
0.0013 0.0013 0.0013 0.0013
Columns 1336 through 1340
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1341 through 1345
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1346 through 1350
0.0013
0.0013 0.0013 0.0013
0.0013
Columns 1351 through 1355
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1356 through 1360
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1361 through 1365
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1366 through 1370
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1371 through 1375
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1376 through 1380
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1381 through 1385
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1386 through 1390
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1391 through 1395
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1396 through 1400
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1401 through 1405
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1406 through 1410
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1411 through 1415
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1416 through 1420
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1421 through 1425
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1426 through 1430
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1431 through 1435
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1436 through 1440
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1441 through 1445
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1446 through 1450
0.0014
0.0014 0.0014 0.0014
0.0014
Columns 1451 through 1455
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1456 through 1460
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1461 through 1465
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1466 through 1470
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1471 through 1475
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1476 through 1480
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1481 through 1485
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1486 through 1490
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1491 through 1495
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1496 through 1500
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1501 through 1505
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1506 through 1510
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1511 through 1515
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1516 through 1520
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1521 through 1525
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1526 through 1530
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1531 through 1535
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1536 through 1540
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1541 through 1545
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1546 through 1550
0.0015
0.0015 0.0015 0.0015
0.0015
Columns 1551 through 1555
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1556 through 1560
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1561 through 1565
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1566 through 1570
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1571 through 1575
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1576 through 1580
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1581 through 1585
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1586 through 1590
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1591 through 1595
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1596 through 1600
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1601 through 1605
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1606 through 1610
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1611 through 1615
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1616 through 1620
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1621 through 1625
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1626 through 1630
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1631 through 1635
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1636 through 1640
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1641 through 1645
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1646 through 1650
0.0016
0.0016 0.0016 0.0016
0.0016
Columns 1651 through 1655
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1656 through 1660
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1661 through 1665
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1666 through 1670
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1671 through 1675
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1676 through 1680
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1681 through 1685
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1686 through 1690
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1691 through 1695
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1696 through 1700
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1701 through 1705
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1706 through 1710
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1711 through 1715
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1716 through 1720
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1721 through 1725
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1726 through 1730
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1731 through 1735
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1736 through 1740
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1741 through 1745
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1746 through 1750
0.0017
0.0017 0.0017 0.0017
0.0017
Columns 1751 through 1755
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1756 through 1760
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1761 through 1765
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1766 through 1770
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1771 through 1775
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1776 through 1780
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1781 through 1785
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1786 through 1790
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1791 through 1795
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1796 through 1800
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1801 through 1805
0.0018
0.0018 0.0018
0.0018 0.0018
Columns 1806 through 1810
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1811 through 1815
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1816 through 1820
0.0018
0.0018 0.0018
0.0018 0.0018
Columns 1821 through 1825
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1826 through 1830
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1831 through 1835
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1836 through 1840
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1841 through 1845
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1846 through 1850
0.0018
0.0018 0.0018 0.0018
0.0018
Columns 1851 through 1855
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1856 through 1860
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1861 through 1865
0.0019
0.0019 0.0019 0.0019
0.0019
Columns
1866 through 1870
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1871 through 1875
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1876 through 1880
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1881 through 1885
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1886 through 1890
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1891 through 1895
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1896 through 1900
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1901 through 1905
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1906 through 1910
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1911 through 1915
0.0019 0.0019 0.0019
0.0019 0.0019
Columns 1916 through 1920
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1921 through 1925
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1926 through 1930
0.0019 0.0019
0.0019 0.0019 0.0019
Columns 1931 through 1935
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1936 through 1940
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1941 through 1945
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1946 through 1950
0.0019
0.0019 0.0019 0.0019
0.0019
Columns 1951 through 1955
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1956 through 1960
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1961 through 1965
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1966 through 1970
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1971 through 1975
0.0020
0.0020 0.0020 0.0020 0.0020
Columns 1976 through 1980
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1981 through 1985
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1986 through 1990
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1991 through 1995
0.0020
0.0020 0.0020 0.0020
0.0020
Columns 1996 through 2000
0.0020
0.0020 0.0020 0.0020
0.0020
Column 2001
0.0020]
Here this vector t is used as
time axis(x axis) while plotting sinusoidal waveform.
y=sin(2*pi*f*t);
It is used to create
sinusoidal waveform.
It multiplies each element of
vector t with (2x 3.14x1000) and returns the circular sine of the elements of resulting vector.
Here f=1000. pi is always
3.14 approximately(constant).
That is why 2*pi*f*t = (2x 3.14x1000).
plot (t,y);
It plots all the lines
defined by t versus y pairs.
xlabel ('Time');
It labels the x-axis as 'Time'.
Each axes graphics object can have one label for
the x-, y-, and z-axis. The label appears beneath its respective axis in a
two-dimensional plot.
ylabel ('Amplitude');
It labels the y-axis as '
Amplitude. '
title ('Sinusoidal Waveform');
It outputs the phrase 'Sinusoidal Waveform' above the figure at
the top.
grid on;
It adds major grid lines to
the current axes.
__________________
Subscribe to:
Posts (Atom)