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;

 Akzeptierte Antwort

Bjorn Gustavsson
Bjorn Gustavsson am 4 Jul. 2019

0 Stimmen

Take a look at matlabFunction, it should be the function to use to convert a symbolic expression to a numerical functin.
HTH

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by