Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
1 次查看(过去 30 天)
显示 更早的评论
Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
0 个评论
采纳的回答
madhan ravi
2019-4-22
编辑:madhan ravi
2019-4-22
sym('') was replaced by str2sym('') in latest versions and you seem to be using 2018b version
e3=str2sym('sin(x)^2+cos(x)=0')
% ^^^^^^^
10 个评论
madhan ravi
2019-4-22
It only works for only a number or a variable. Read the documentations. Take MATLAB on-ramp course to learn the basics of MATLAB.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!