필터 지우기
필터 지우기

Why is it wrong: e3=sym('si​n(x)^2+cos​(x)=0')

조회 수: 2 (최근 30일)
zhenyu zeng
zhenyu zeng 2019년 4월 22일
댓글: madhan ravi 2019년 4월 22일
Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')

채택된 답변

madhan ravi
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
zhenyu zeng
zhenyu zeng 2019년 4월 22일
Why not use str2sym('a') instead of sym('a’)?
madhan ravi
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개)

KSSV
KSSV 2019년 4월 22일
syms x
e3 = sin(x)^2+cos(x)==0

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by