Importing Latex Code into Matlab Scripts
14 次查看(过去 30 天)
显示 更早的评论
Is there an easy way to import Latex code into a Matlab script or live script?
0 个评论
回答(1 个)
Vladimir Sovkov
2020-1-7
In live script, go to \insert\Equation\Latex equation or just press Cntrl+Shift+L or type your Latex equation embraced by $ symbols.
3 个评论
Vladimir Sovkov
2020-1-8
This is indeed a way of making a good-looking equation in the live script text mode. I am unaware of a simple method to convert it into the executable Matlab code. The syntax differ, hence, a retranslator though is possible in principle, would be a huge complicated system, and I do not think it has been created by anybody thus far.
Vladimir Sovkov
2020-1-8
The reverse operation is easier--a Matlab symbolic expression can be turned to a latex formular with the command "latex" in the Symbolic Math Toolbox.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!