![]() To change the width of the line, you can include the string 'LineWidth' as the fourth input and an integer value for the width of the line as the fifth input. In addition, you can control the size of the line and markers by including additional pairs of inputs to plot(). Note that you can leave some options out, for example no marker type option indicates no markers or no line type option will not plot the line, only the specified markers! Also, the order of the options in the string input does not matter. Colorīy using combinations of the choices above for the third input to plot() you can format how you want the plot to look. Some of the options for these are given in the table below. These correspond to the color, line type, and marker type. This input is given in the form of a string (enclosed in single quotation marks) that can contain up to three letters/symbols. The MATLAB plot() function can actually take an additional third input that tells it what color, what type of line, and what type of marker ("dot" on each point) to use. MATLAB Plot Colors, Line Type, and Marker Type In the next post, we will finish our discussion of 2D plots by seeing how how we can handle multiple MATLAB plots on the same axis and in the same figure. These include options for changing the color of plot lines, the type of line, and the type of markers. ![]() ![]() Now I'd like to show you some very simple MATLAB plot formatting options. In the last post, I introduced the basics of MATLAB plots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |