2
votes

I try to use the logarithm function to a specific base in Matlab but I get the error message: "Error using log Too many input arguments." which I do not understand because the syntax is very simple. My code is: log(4,2); Why do I get this error?

1
Are you looking for log2? - TroyHaskin

1 Answers

2
votes

matlab's log function (before R2017a) doesn't have this functionality. instead, you can do: log(x)/log(n), whereas log_n(x) = log(x)/log(n)