Simplify Symbolic Values of All Fields in Struct

조회 수: 6 (최근 30일)
Kevin Bachovchin
Kevin Bachovchin 2013년 4월 12일
Hello,
I have a struct containing multiple fields. The value of each field is a symbolic expression. Is there a way I can simplify the symbolic values of all fields in the struct. The command simplify(MyStruct) does not work.
Thank you,
Kevin

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 12일
structfun(@simplify, MyStruct, 'Uniform', 0)
  댓글 수: 1
Kevin Bachovchin
Kevin Bachovchin 2013년 4월 12일
Thanks, works perfectly.
Would you please be able to answer my question in response to your answer in the thread http://www.mathworks.com/matlabcentral/answers/71498-using-a-symbolic-expression ? If you could, I'd really appreciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by