Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
    2 views (last 30 days)
  
       Show older comments
    
Why is it wrong: e3=sym('sin(x)^2+cos(x)=0')
0 Comments
Accepted Answer
  madhan ravi
      
      
 on 22 Apr 2019
        
      Edited: madhan ravi
      
      
 on 22 Apr 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 Comments
  madhan ravi
      
      
 on 22 Apr 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.
More Answers (1)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

