Print a Matlab Expression as Text

조회 수: 1 (최근 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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by