フィルターのクリア

logarithm how to slove

1 回表示 (過去 30 日間)
MANANJAYA NAYAK
MANANJAYA NAYAK 2022 年 11 月 27 日
コメント済み: Dyuman Joshi 2022 年 11 月 27 日
i want the result should be in form of logarithm
log10(64)-log10(128)+log10(32)
ans =
1.2041
% but i need the result in form of 4*log10(2)
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2022 年 11 月 27 日
You won't be able to do that with numeric operations. MATLAB will always return final answer as numeric value.
The closest you might get is using symobilc variable, which supports natural log -
syms f(x,y,z)
f(x,y,z)=log10(x)-log10(y)+log10(z);
val=simplify(f(64,128,32))
val = 
str=class(val)
str = 'sym'

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeExponents and Logarithms についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by