Print a Matlab Expression as Text

9 ビュー (過去 30 日間)
Benjamin Gutierrez
Benjamin Gutierrez 2019 年 12 月 23 日
コメント済み: Benjamin Gutierrez 2019 年 12 月 25 日
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 Center および File ExchangeLow-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