createlegend(vararg​in)

Create legend with customised variable names and variable unit, and in LaTeX format.

You are now following this Submission

This function allows you to create and display plot Legend in such a way that each line in the legend has a customized variable name, an equality sign, and a unit sign/symbol.
This should work for all version of MATLAB that supports LaTeX formatting in Legend

Cite As

Chibuzo Nnonyelu (2026). createlegend(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61709-createlegend-varargin), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0