examples sheik

8
Plot Sine wave and cosine wave t = 0:.1:10; y = sin(t); plot(t,y); check by changing t = 0:.1:100; check by changing t = 0:1:100; check by changing t = 0:10:100; Summarise the results. t = 0:.1:10; y = sin(t) + sin(3*t)/3; plot(t,y); Do the calculation manually and draw the graph. Plot the sine wave for 50Hz frequency t=0:0.001:0.02; f = 50; x = sin(2*pi*f*t); plot (t,x) t=0:0.001:0.02; f = 50; x = cos(2*pi*f*t); plot (t,x) Coding for discrete signal in Matlab t=0:0.01:0.5;  y=sin(2*pi*5*t);   stem(t,y); title('discret e signal') Vectors Let's start off by creating something simple, like a vecto r. Enter each element of the vecto r (separated by a space) between brackets, and set it equal to a variable. For example, to create the

Upload: sheik-mohammed

Post on 07-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 1/8

Page 2: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 2/8

Page 3: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 3/8

Page 4: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 4/8

Page 5: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 5/8

Page 6: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 6/8

Page 7: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 7/8

Page 8: Examples Sheik

8/6/2019 Examples Sheik

http://slidepdf.com/reader/full/examples-sheik 8/8