Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
조회 수: 2 (최근 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!