EQ2LATEX Convert an equation to latex form.
t = eq2latex(f,copyOpt) converts a matlab symbolic equation to latex form
and write it on a figure window to aid visual inspection of syntax or
user errors of a matlab equation.
t returns a text object.
f should be a symbolic expression defined correctly using sym or syms.
If copyOpt=='copy', the latex string is copied to clipboard and you can
paste an external app such as mathtype.
Developer: lazymatlabber
https://www.facebook.com/lazymatlabber/
https://lazymatlab.tistory.com/
2018.12.27. First release
2019.12.01. Copy option added
Refs.
https://kr.mathworks.com/help/symbolic/sym.latex.html
https://kr.mathworks.com/help/matlab/ref/text.html
https://lazymatlab.tistory.com/30
Cite As
lazymatlab (2025). eq2latex (https://www.mathworks.com/matlabcentral/fileexchange/73509-eq2latex), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.