Evaluating a symbolic expression numerically without invoking the syms command

Hello
In one matlab file (my_file_1.m), I have created a system of symbolic equations. I have saved out these symbolic equations to an .mat file (my_symbolic_equations.mat).
In a separate file (my_file_2.m), I load: my_symbolic_equations.mat.
I would like to evaluate these equations numerically by substiting into to them numerical values for the symbolic values.
Further, I would like to do this without invoking the syms command within my second m file.
Can this be easily done?
Best Regards
Mike

 採用された回答

Stephan
Stephan 2019 年 7 月 1 日

0 投票

Save them as function handle in your .mat file. This allows you to use them numerical.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by