log(b,x) works in MuPad but not in the command line
2 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2015 年 8 月 9 日
Then use
log(x)/log(b)
3 件のコメント
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
2015 年 8 月 9 日
MuPAD is really a separate programming language. Not all parts of it have been interfaced directly to MATLAB.
参考
カテゴリ
Help Center および File Exchange で Get Started with MuPAD についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!