error using log too many input arguments
조회 수: 5 (최근 30일)
이전 댓글 표시
I'm having a small issue using log. I want to change the base of the log using the log(b, x) format but It shows the error to many input arguments here is my code: Xans1 = log(3, sol) -4;
댓글 수: 0
답변 (2개)
Walter Roberson
2018년 3월 11일
You are looking at the documentation for the symbolic log(). The numeric log() does not accept two parameters.
댓글 수: 0
David Goodmanson
2018년 3월 13일
Hi Janrex,
Since
log_base_b(x) = log(x)/log(b)
you could write your own function for that, just don't call it 'log'.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Exponents and Logarithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!