Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zhenyu zeng
el 22 de Abr. de 2019
Comentada: madhan ravi
el 22 de Abr. de 2019
Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
0 comentarios
Respuesta aceptada
madhan ravi
el 22 de Abr. de 2019
Editada: madhan ravi
el 22 de Abr. de 2019
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 comentarios
madhan ravi
el 22 de Abr. de 2019
It only works for only a number or a variable. Read the documentations. Take MATLAB on-ramp course to learn the basics of MATLAB.
Más respuestas (1)
Ver también
Categorías
Más información sobre Assumptions en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!