フィルターのクリア

how to take logarithm of a functional form in matlab?

3 ビュー (過去 30 日間)
Tanvir Kaisar
Tanvir Kaisar 2016 年 11 月 10 日
コメント済み: Tanvir Kaisar 2016 年 11 月 11 日
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()
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 11 月 10 日
syms x y positive
expand( log(x*y))
Tanvir Kaisar
Tanvir Kaisar 2016 年 11 月 11 日
It worked! Thank u! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by