Integer programming matlab 2009 plus#
Plots a yellow dotted line and places plus sign markers at each data point. The most common marker types include '+', 'o', '*', and 'x'.Linestyle strings are '-' for solid, '- ' for dashed, ':' for dotted, '-.' for dash-dot, and 'none' for no line.These correspond to cyan, magenta, yellow, red, green, blue, white, and black. It is possible to specify color, linestyle, and markers, such as plus signs or circles, with:Ĭolor_style_marker is a 1-, 2-, or 3-character string (delineated by single quotation marks) constructed from a color, a linestyle, and a marker type: For example, these statements plot three related functions of t, each curve in a separate distinguishing color: y2 = sin(t-.25) 圓 = sin(t-.5) plot(t,y,t,y2,t,圓) MATLAB automatically cycles through a predefined (but user settable) list of colors to allow discrimination between each set of data. Multiple x - y pairs create multiple graphs with a single call to plot. If you specify two vectors as arguments, plot(x,y) produces a graph of y versus x.įor example, to plot the value of the sine function from zero to 2, use If y is a vector, plot(y) produces a piecewise linear graph of the elements of y versus the index of the elements of y. The plot function has different forms, depending on the input arguments. This section describes a few of the most important graphics functions and provides examples of some typical applications. MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well asĪnnotating and printing these graphs.