Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Abe
Abe le 9 Août 2015
Commenté : Walter Roberson le 9 Août 2015
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

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 9 Août 2015
Then use
log(x)/log(b)
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 9 Août 2015
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 le 9 Août 2015
MuPAD is really a separate programming language. Not all parts of it have been interfaced directly to MATLAB.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MuPAD dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by