how to solve 'Too many input arguments' error?

2 visualizaciones (últimos 30 días)
mohanish
mohanish el 26 de Sept. de 2018
Comentada: mohanish el 26 de Sept. de 2018
I am writing a code in which i am getting an error on line 119 which is... y=log(max(m*abs(f(a:b,:))),ath);
I am getting an error saying.. Error using log Too many input arguments. I have attached the .m file below

Respuesta aceptada

Adam Danz
Adam Danz el 26 de Sept. de 2018
Editada: Adam Danz el 26 de Sept. de 2018
help log
log(X) is the natural logarithm of the elements of X.
Complex results are produced if X is not positive.
You'll see that log() has one input. You are shoving in two inputs:
  • max(m*abs(f(a:b,:)))
  • ath
You must remove one.
  2 comentarios
Fangjun Jiang
Fangjun Jiang el 26 de Sept. de 2018
Probably it should be y=log(max(m*abs(f(a:b,:)),ath))
mohanish
mohanish el 26 de Sept. de 2018
thanks! It worked!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by