![]() ![]() You must specify all other properties as name/value pairs. In its informal form, the line function interprets the first three arguments (two for 2-D) as the X, Y, and Z coordinate data, allowing you to omit the property names. Returns a column vector of handles corresponding to each line object the function creates. This is the low-level form of the line function, which does not accept matrix coordinate data as the other informal forms described above. Line('XData',x,'YData',y,'ZData',z,' PropertyName',PropertyValue.Ĭreates a line in the current axes using the property values defined as arguments. See the LineStyle and Marker properties for a list of supported values. If X and Y are matrices of the same size, line draws one line per column.Ĭreates lines in three-dimensional coordinates.Ĭreates a line using the values for the property name/property value pairs specified and default values for all other properties. Note that you cannot specify matrix coordinate data with the low-level form of the line function.Īdds the line defined in vectors X and Y to the current axes. MATLAB draws a line object in the current axes using the default line color (see the colordef function for information on color defaults).When you call line with only property name/property value pairs, However, unlike plot, line does not call the newplot function. MATLAB cycles through the axes ColorOrder and LineStyleOrder property values the way the plot function does.When you specify matrix coordinate data using the informal syntax (i.e., the first three arguments are interpreted as the coordinates), Automatic color and line style cycling.You can specify the color, width, line style, and marker type, as well as other characteristics. Line creates a line object in the current axes. Line(' PropertyName',PropertyValue.) low-level-PN/PV pairs only Line(X,Y,Z,' PropertyName',PropertyValue.) Line (MATLAB Functions) MATLAB Function Reference ![]()
0 Comments
Leave a Reply. |