MATLAB Answers

Simplify throws an error message and I don't understand why

10 ビュー (過去 30 日間)
Dirk kok
Dirk kok 2013 年 9 月 12 日
I get the following error message when i am playing around with the Simplify function and I was wondering why?
syms a b c R
A = (a*b + a*R)/(b+R)
Simplify(A, OutputType = "Proof")
Error: The expression to the left of the equals sign is not a valid target for an assignment.
Is this a new function within Matlab 2013b (I am currently using 2013a)? I have the Symbolic Math Toolbox (I did check this).
Is there anything I am missing? Thanks in advance


Friedrich 2013 年 9 月 12 日
that syntax is a MuPAD command so it works in MuPAD only. In the case you want to call it from MATLAB use:
feval(symengine,'Simplify',A,'OutputType = "Proof"')

その他の回答 (1 件)

Dirk kok
Dirk kok 2013 年 9 月 12 日
Wow thanks.
I wasnt aware of mupad. I heard about it when reading funtions but not what it actually does. A new world is opening for me.
thanks for that

Community Treasure Hunt

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

Start Hunting!

Translated by