Filter löschen
Filter löschen

How to Simplify a system of equations and find possible substitions (symbolic toolbox?

1 Ansicht (letzte 30 Tage)
Hello,
i've got 8 symbolic expressions and i want to simplify this system of equations together. So i've there identical expressions in 2 or more equations the number of mathematical computations can be reduced.
It is a symbolic problem using the symbolic toolbox.
  4 Kommentare
Dyuman Joshi
Dyuman Joshi am 9 Jan. 2024
What would you do with the simplifed system? Solve it for the parameters?
Torben
Torben am 9 Jan. 2024
Using the 8 derivations directly for some kind of online RLS-algorithm

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Jan. 2024
If you use matlabFunction and request that it be written to a file, then the default is to optimize. The optimization step involves searching for common subexpressions and assigning them to variables and reusing the variables.
The end result is a .m file that is intended for numeric calculation.
Caution: not very long ago, optimization was badly broken, so test before trusting.
  3 Kommentare
Walter Roberson
Walter Roberson am 9 Jan. 2024
I haven't tested over the last couple of releases, but not very long ago, the optimization phase had a series of problems for a number of years. It was completely unusuable for longer expressions.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by