how to take logarithm of a functional form in matlab?

3 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2016-11-10
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()

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Function Creation 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by