필터 지우기
필터 지우기

Antilog formula in matlab

조회 수: 66 (최근 30일)
nichapat asayakhun
nichapat asayakhun 2021년 8월 4일
댓글: Stephen23 2023년 9월 19일
How can I put this function of inverselog in matlab code. Where A and B is the constant.

답변 (2개)

Chunru
Chunru 2021년 8월 4일
tmp = 1og10((W_TO-A)./B);
W_E = 10.^(tmp); % check out the definition of invlog10; it should be 10^x

David Gordon
David Gordon 2023년 9월 18일
wHY IS HELP IN MATLAB SO CRAPPY??????
TO understand your answers I need to understand matlab which is why i'm using matlab help!!! uselesssssssss!!!!!!!
How can I take 10^(1x1651 double vaiable) ?????????
  댓글 수: 2
John D'Errico
John D'Errico 2023년 9월 18일
편집: John D'Errico 2023년 9월 18일
Yours is not an answer to the question. It is just a rant, due to your not understanding how to use the language. It just means you needed to read the manual, or perhaps better yet, to do one of the many tutorials you could find.
However, if you want to form an element-wise power operation, you need to use the element-wise operator, thus .^ operator. For example...
P = 1:.5:3
P = 1×5
1.0000 1.5000 2.0000 2.5000 3.0000
format short g
10.^P
ans = 1×5
1.0e+00 * 10 31.623 100 316.23 1000
So we see 10 raised successively to each of those powers.
The power operator that does not have a dot in it is used for linear algebra operatios, essentially when the arguments are not scalars. If both arguments are scalars, then the two operators are the same. Since MATLAB is a language designed to be used for linear algebra by the rest of us, it makes sense there need to be two sets of operators.
Stephen23
Stephen23 2023년 9월 19일
"wHY IS HELP IN MATLAB SO CRAPPY??????"
You are using MPOWER operator (which is the wrong operation). When you scroll to the bottom of the MPOWER documentation it contains links to other related functions including POWER (which is the correct operation). Note that both of those pages also link to this important page:
which explains fundamental information that is important to understand about such numeric operations.
When you get stuck using MATLAB start by reading the documentation of the operator that you are already using (e.g. MPOWER) and also take the time to read anything that the its documentation links to. If you do not do that then it will be very hard to learn to use MATLAB.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by