Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
zhenyu zeng
le 22 Avr 2019
Commenté : madhan ravi
le 22 Avr 2019
Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
0 commentaires
Réponse acceptée
madhan ravi
le 22 Avr 2019
Modifié(e) : madhan ravi
le 22 Avr 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 commentaires
madhan ravi
le 22 Avr 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.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Assumptions dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!