Can I substitute a particular expression?
Ältere Kommentare anzeigen
subexpr() discovers a common subexpression and rewrites a symbolic expression in terms of the found subexpression. How can I similarly rewrite an expression in terms a given subexpression? For example, I would like to use sigma = k^(1/2) to obtain:
sigma, sigma^3, sigma^5
out of
k^(1/2), k^(3/2), k^(5/2)?
3 Kommentare
Ajay Chauhan
am 23 Jul. 2021
Hi Valeri,
I am trying to understand the use of subexpr(). It would be great if you could share a few examples/snippet so as to get an idea what needs to be substituted.
Valeri Aronov
am 23 Jul. 2021
Valeri Aronov
am 24 Jul. 2021
Bearbeitet: Valeri Aronov
am 24 Jul. 2021
Akzeptierte Antwort
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!



