필터 지우기
필터 지우기

log(b,x) works in MuPad but not in the command line

조회 수: 1 (최근 30일)
Abe
Abe 2015년 8월 9일
댓글: Walter Roberson 2015년 8월 9일
Hello folks! i am new at this.. mmm why this version of the log function,log (b,x), works only in MuPad window but not if i enter it in MATLAB command window. this error msg appears when i entered in the command line "Error using log Too many input arguments." any help

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 8월 9일
Then use
log(x)/log(b)
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2015년 8월 9일
You can create your own function
logb=@(b,x) log(x)/log(b)
then call it
b=10
x=5
logb(b,x)
Walter Roberson
Walter Roberson 2015년 8월 9일
MuPAD is really a separate programming language. Not all parts of it have been interfaced directly to MATLAB.

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

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by