EXAMPLE OF A FORMATTED PLOT
{"Image DocumentName": "EXAMPLE OF A FORMATTED PLOT", "Image ImageDescription": "Engineering H192. Winter EXAMPLE OF A FORMATTED PLOT. Below is a script file of the formatted light intensity plot (2nd slide). (Some of the formatting options were not covered in the lectures, but are described in the book) x=[10:0.1:22]; y=95000./x.^2; xd=[10:2:22]; yd=[ ]; plot(x,y, - , LineWidth ,1.0) hold on. plot(xd,yd, ro-- , linewidth ,1.0, markersize ,10) hold off. Creating vector x for plotting the theoretical curve. Creating vector y for plotting the theoretical curve. Creating a vector with coordinates of data points. Creating a vector with light intensity from data. Instructor notes: The next two slides show a brief script file example of formatting a plot. An x vector is created and a corresponding y vector that is the theoretical response to the x vector. In addition an x vector and a y vector are created for the measured data points. First the theoretical data is plotted. Note that the line width is specified in the plot. LineWidth has not been covered in class, but is available in the text. Next the hold on command is issued so that subsequent plot () operations appear on the same graph. The plot of data is then done, again with some formatting options that are covered in the text, but not mentioned in class. Then, the hold off command is issued. Lecture 22A.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}