How to convert latex representation to symbolic math?

16 vues (au cours des 30 derniers jours)
Ankit Chiplunkar
Ankit Chiplunkar le 2 Fév 2015
Commenté : Walter Roberson le 26 Mar 2023
How can we convert Latex representation into symbolic math.
For example,
LaTex representation
y = \int x^2
Has an equivalent symbolic math representation as
syms x
y = int(x*x, x)
Is there a function to perform this action? I know that there exists a function latex in matlab. But I want the exact inverse of it.
  2 commentaires
An
An le 30 Déc 2017
did you ever find a solution to this?
John D'Errico
John D'Errico le 30 Déc 2017
There is not one.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 30 Déc 2017
Use Wolfram Alpha to import the LaTex string as MATHEMATICA code and then to convert the MATHEMATICA code to MATLAB.
I make no promises at all for how well this will work.
  3 commentaires
Aakash
Aakash le 26 Mar 2023
can someone send me an example code for doing this?
Thank you

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by