convert string and sym equstion to use maple symbolic engine !
1 次查看(过去 30 天)
显示 更早的评论
hi everyone, i have an equation, a*x^2+1 . i want to solve this using maple symbolic engine. i use following , but it ended up with error :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169337/image.png)
i think the problem is about the string ' ' which i should put equations into to be solved ! how can i convert this string to a normal symbolic equation ? how can i convert 'a*x^2-1' to 10*x^2-1 , to solve the problem ? tnx for help.
0 个评论
回答(1 个)
Birdman
2018-1-23
syms a x
eq=a*x^2-1
%%symbolic substitution for a in eq
eq1=subs(eq,a,10)
solve(eq1,x)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!