symbolic equation to numerical answer
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have created a symbolic equation on a previous script and saved it as a .mat file
I hvae then opened it in a new script and wish asign variables to gain a numerical value
can anyone help me with this?
solv = open('solvx.mat')
x=solv.solx;
cx = 10;
cy = 10;
r = 2;
b = 30;
0 个评论
采纳的回答
Bjorn Gustavsson
2019-7-4
Take a look at matlabFunction, it should be the function to use to convert a symbolic expression to a numerical functin.
HTH
更多回答(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!