UNEXPECTED MATLAB EXPRESSION displayed whenI try to assign a function to a variable

Hello.
In the command window, I created variables a, and x by commands:
syms a syms x
Now, when I try to assign a value to a by writing:
a=(x^2-19x+90)
to generate a equals to [x squared] minus [19 times x] plus [90]
it gives me unexpected matlab expression error.
What am I doing wrong? Please help.

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2013년 9월 27일

답변:

2013년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by