About 56 results
Open links in new tab
  1. How to add an independent text in MATLAB plot legend

    Jan 23, 2017 · The legend function will return as its second output argument handles for all of the components that make up the symbols and text in the legend. You can therefore plot "dummy" …

  2. matlab - legend for group of lines - Stack Overflow

    Jan 26, 2010 · To update a legend, you need to replace the whole thing by calling "legend(names)" again. You can use the fourth argument of the getter form of legend() to …

  3. matlab - Add custom legend without any relation to the graph

    Nov 2, 2015 · Your question is a little unclear. However, the first thing I thought of when reading it was the text function in Matlab. You can use the text function to add text to a Matlab figure. It's …

  4. plot - Write Equation from Fit in Legend, Matlab - Stack Overflow

    Aug 8, 2013 · Here is a piece of code that will display the fitted equation in the legend box. You can reduce the amount of digits in the legend by manipulating the sprintf option: %f to %3.2f …

  5. advanced customization of legend markers in matlab

    In the MatLab version up to R2014a the legend box is actually an axes so it is relatively easy to modify its content through its handle. From version R2014b the legend is a graphics object …

  6. Square root symbol label in Matlab - Stack Overflow

    Feb 18, 2014 · How to get the square root sign inside a legend? I tried \\surd, but did not consider all my expression below this symbol. \\sqrt and \\square do not work at all. m=[2 4.8 7 9.1 11.5 …

  7. How can I add a 2-column legend to a Matlab plot? [duplicate]

    MATLAB has introduced native support for multiple columns in legend from version 2018a.Just add 'NumColumns',desired_number at the end of the legend() command.

  8. matlab - Adding to a legend after each iteration - Stack Overflow

    Essentially it turns the legend off (the line below turns it back on), which forces Matlab to refresh and display new legend changes. – ntjess Commented Nov 23, 2019 at 15:24

  9. matlab - Dynamic Legend (Updates in every recursion) - Stack …

    I got a for i=1:15. Inside I generate a variable d=1:0.01:10, which is the x'x axis and based on this, I create a continuous function F(d) which has 2 unique variables pitch and yaw. I then plot t...

  10. Plotting a variable in a Legend - Matlab - Stack Overflow

    Mar 12, 2015 · Hi I am trying to plot a legend using a combination of text and variables. I did some research and found that sprintf can be used, however I am having trouble implementing it. My …

Refresh