About 18,400,000 results
Open links in new tab
  1. Labels and Annotations - MathWorks

    You can create a legend to label plotted data series or add descriptive text next to data points. Also, you can create annotations such as rectangles, ellipses, arrows, vertical lines, or horizontal lines that highlight specific areas of data.

  2. how to label lines on a graph - MATLAB Answers - MATLAB

    Dec 1, 2011 · The general method would be using the legend function, to which you give a vector of the plot object handles and a series of corresponding strings. For example, The legend makes the connection between the plot object a1 and the string M1, and uses this to …

  3. xline - MathWorks

    xline(x,LineSpec,labels) adds labels to the lines. xline(___,Name,Value) specifies constant line properties using one or more name-value pair arguments. For a list of properties, see ConstantLine Properties. Specify name-value pairs after all other input arguments.

  4. How to label line in Matlab plot - Stack Overflow

    Mar 25, 2018 · Since you have a lot of graphs and not much space, I suggest you use text to add the label at the end of the line. So in the loop add (under ylabel for example) str = sprintf(' n = %.2f',n); text(x(end),H(end),str);

  5. How to Label Lines in MATLAB - Delft Stack

    Mar 11, 2025 · Learn how to label lines in MATLAB effectively using the text() function. This comprehensive guide covers basic labeling techniques, adding multiple labels, and customizing labels for better visualization.

  6. Add label title and text in MATLAB plot | Axis label and title in ...

    How to add label, title and text in MATLAB plot or add axis label and title of plot in MATLAB in part of MATLAB TUTORIALS video lecture series. The initial section of the video is...

  7. plot - New line in axis tick labels in Matlab - Stack Overflow

    Sep 1, 2013 · Is there a way to have a new line in an axis tick label in Matlab to produce a multiline tick label? The two suggestions from here for other text elements don't seem to work: set(gca,'xticklabel',{{'line1','line2'}})

  8. How do I label lines in a MatLab plot? - Stack Overflow

    Feb 27, 2022 · Possibly plotting the labels along the points of a circle using the text() function may suffice. There's some shifting of points and flipping that needs to be done to get the order you wish but otherwise it's just 8 points taken along a circle that is …

  9. MATLAB Programming/Inserting Newlines into Plot Labels

    Cell arrays are the easiest way to generate new lines when using the functions xlabel, ylabel, zlabel, text, title, and gtext. However, cell arrays do not always work (see next section). When displaying text on plots, "\n" is typically interpreted as '\' followed by 'n' instead of the newline character. To generate multiple lines, use cell arrays.

  10. Add Title and Axis Labels to Chart - MatlabSolutions

    This example shows how to add a title and axis labels to a chart by using the title, xlabel, and ylabel functions. It also shows how to customize the appearance of the axes text by changing the font size.

  11. Some results have been removed
Refresh