Print a Matlab Expression as Text

9 vues (au cours des 30 derniers jours)
Benjamin Gutierrez
Benjamin Gutierrez le 23 Déc 2019
Hey,
I am creating a GUI in which I would like to display an equation as text.
For example, I have the expression:
z = (z).^2+c;
I would like to print the '(z).^2+c' part of this expression so the user knows which equation is selected.
Is this possible to do?
Thanks,
Ben G
  7 commentaires
Walter Roberson
Walter Roberson le 25 Déc 2019
str2func() is more robust than eval()
Benjamin Gutierrez
Benjamin Gutierrez le 25 Déc 2019
Perfect, I'll switch to using that function.
Thank you.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Low-Level File I/O 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