MATLAB Tutorial - MIT OpenCourseWare | Free Online Course Materials
MATLAB Tutorial Chapter 3. Basic graphing routines 3.1. 2-D plots The basic command for making a 2-D plot is "plot". The following code makes a plot of the function sin(x). x = linspace(0,2*pi,200); f1 = sin(x); plot(x,f1) we now add a title and labels fo...