how to take logarithm of a functional form in matlab?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Tanvir Kaisar
il 10 Nov 2016
Commentato: Tanvir Kaisar
il 11 Nov 2016
I have defined a function- >>f=inline('x*y','x','y') Now when i take log of this- >>logarithm=inline(log(f(x,y)),'x','y') Matlab simply shows log(x.*y) HOW CAN I GET THE ANSWER "logx+logy" instead?
0 Commenti
Risposta accettata
Walter Roberson
il 10 Nov 2016
You might be able to do it with the symbolic toolbox, though I would have to experiment to figure out how messy it is.
You should not be writing any new inline() unless you need backwards compatibility with something already written. Anonymous functions have replaced inline()
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Function Creation in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!