Borrar filtros
Borrar filtros

error using log too many input arguments

4 visualizaciones (últimos 30 días)
Janrex Pensader
Janrex Pensader el 11 de Mzo. de 2018
Respondida: David Goodmanson el 13 de Mzo. de 2018
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;

Respuestas (2)

Walter Roberson
Walter Roberson el 11 de Mzo. de 2018
You are looking at the documentation for the symbolic log(). The numeric log() does not accept two parameters.

David Goodmanson
David Goodmanson el 13 de Mzo. de 2018
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'.

Categorías

Más información sobre Exponents and Logarithms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by