tailieunhanh - Lecture Data visualization - Chapter 25
In this lecture we learned about: Function plots, three dimensional plotting, surface plotting, mesh plot, surf plot, contour plot, editing in plot in graphical window, making plot from workspace window. | Lecture 25 Recap Function Plots Three Dimensional Plotting Surface Plotting Mesh Plot Surf Plot Contour Plot Editing in Plot in Graphical Window Making Plot from Workspace Window Saving Plots There are several ways to save plots created in MATLAB: If the plot are created with programming code stored in an M-fi le, simplyrerunning the code will re-create the figure The figure can also be saved from the file menu, using the Save As . . . option. Several choices will be opened: The figure can be saved as a .fig fi le, which is a MATLAB -specific fi e format. To retrieve the figure, just double-click on the file name in the current folder. You can do the same thing programmatically with the code open The figure can be saved in a number of different standard graphics formats, such as jpeg ( .jpg ) and enhanced metafile ( .emf ). These versions of the figure can be inserted into other documents, such as a Word document Select Edit from the menu bar, then select copy figure, and paste the figure into another document Use the file menu to create an M-file that will re-create the figure Summary of Chapter The most commonly used graph in engineering is the x – y plot This two-dimensional plot can be used to graph data or to visualize mathematical functions No matter what a graph represents, it should always include a title and x - and y -axis labels Axis labels should be descriptive and should include units, such as ft/s or kJ/kg MATLAB includes extensive options for controlling the appearance of your plots The user can specify the color, line style, and marker style for each line on a graph A grid can be added to the graph, and the axis range can be adjusted Text boxes and a legend can be employed to describe the graph The subplot function is used to divide the plot window into an mxn grid Inside each of these subwindows, any of the MATLAB ® plots can be created and modified Continued . In addition to x – y plots, MATLAB offers a variety of plotting . | Lecture 25 Recap Function Plots Three Dimensional Plotting Surface Plotting Mesh Plot Surf Plot Contour Plot Editing in Plot in Graphical Window Making Plot from Workspace Window Saving Plots There are several ways to save plots created in MATLAB: If the plot are created with programming code stored in an M-fi le, simplyrerunning the code will re-create the figure The figure can also be saved from the file menu, using the Save As . . . option. Several choices will be opened: The figure can be saved as a .fig fi le, which is a MATLAB -specific fi e format. To retrieve the figure, just double-click on the file name in the current folder. You can do the same thing programmatically with the code open The figure can be saved in a number of different standard graphics formats, such as jpeg ( .jpg ) and enhanced metafile ( .emf ). These versions of the figure can be inserted into other documents, such as a Word document Select Edit from the menu bar, then select copy figure,
đang nạp các trang xem trước