MATLAB: Simplify Symbolic Values of All Fields in Struct

structsymbolic

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

Best Answer

structfun(@simplify, MyStruct, 'Uniform', 0)