Importing Latex Code into Matlab Scripts

조회 수: 25 (최근 30일)
David Slater
David Slater 2020년 1월 7일
댓글: Vladimir Sovkov 2020년 1월 8일
Is there an easy way to import Latex code into a Matlab script or live script?

답변 (1개)

Vladimir Sovkov
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
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
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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by