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일
Save them as function handle in your .mat file. This allows you to use them numerical.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2019년 7월 1일

댓글:

2019년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by