symbolic equation to numerical answer

1 回表示 (過去 30 日間)
Jonathan Greenwood
Jonathan Greenwood 2019 年 7 月 4 日
コメント済み: Torsten 2019 年 7 月 4 日
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;

採用された回答

Bjorn Gustavsson
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
  1 件のコメント
Torsten
Torsten 2019 年 7 月 4 日
Or use
vpa(subs(...))

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by