File Exchange

image thumbnail

MATLAB Plot Gallery - Adding Latex to Plots

version (25.8 KB) by MathWorks Plot Gallery Team
Add math equations to a plot using LaTeX


Updated 19 Dec 2018

View Version History

View License

This is an example of how to add LaTeX equations to plots in MATLAB®.
Read about the "text" function in the MATLAB documentation.
For more examples, go to MATLAB Plot Gallery -

Cite As

MathWorks Plot Gallery Team (2021). MATLAB Plot Gallery - Adding Latex to Plots (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

黄智伟 黄

Very unclear on how to translate this code to other graphs. Was over an hour copiying and pasting hoping for it to work, and it didn't.

Yao Zhang

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!