Print a Matlab Expression as Text

8 visualizaciones (últimos 30 días)
Benjamin Gutierrez
Benjamin Gutierrez el 23 de Dic. de 2019
Comentada: Benjamin Gutierrez el 25 de Dic. de 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 comentarios
Walter Roberson
Walter Roberson el 25 de Dic. de 2019
str2func() is more robust than eval()
Benjamin Gutierrez
Benjamin Gutierrez el 25 de Dic. de 2019
Perfect, I'll switch to using that function.
Thank you.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Low-Level File I/O en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by