Can I substitute a particular expression?
Afficher commentaires plus anciens
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 commentaires
Ajay Chauhan
le 23 Juil 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
le 23 Juil 2021
Valeri Aronov
le 24 Juil 2021
Modifié(e) : Valeri Aronov
le 24 Juil 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numeric Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



