Print a Matlab Expression as Text

8 Ansichten (letzte 30 Tage)
Benjamin Gutierrez
Benjamin Gutierrez am 23 Dez. 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 Kommentare
Walter Roberson
Walter Roberson am 25 Dez. 2019
str2func() is more robust than eval()
Benjamin Gutierrez
Benjamin Gutierrez am 25 Dez. 2019
Perfect, I'll switch to using that function.
Thank you.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Low-Level File I/O finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by