Académique Documents
Professionnel Documents
Culture Documents
lecture 5
Olawale B. Akinwale
Dept of Electronic & Electrical
Engineering
Obafemi Awolowo University, Ile-Ife
Plotting Graphs
• plot(x,y)
– x = [1 2 3 4 2 5 2] y = [5 4 3 4 1 4 2]
• plot(y)
– x = [34 2 4 1 4 9]
– y = [1+2i, 2 +3i, 2 -3i]
• plot(x,y,s)
Plotting Graphs (cont’d)
• plot(x,y)
– where
x = -180:1:180 y = sin(x)
• Hold
– y = cos (x)
Plotting Graphs (cont’d)