Print a Matlab Expression as Text

4 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2019-12-25
str2func() is more robust than eval()
Benjamin Gutierrez
Benjamin Gutierrez 2019-12-25
Perfect, I'll switch to using that function.
Thank you.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by