Error using input function

11 visualizaciones (últimos 30 días)
Jayesh Kamboj
Jayesh Kamboj el 11 de Sept. de 2020
Comentada: Dr. Kelsey Joy el 27 de Nov. de 2021
I am receiving an error with MATLAB and I have absolutely no idea why.
MATLAB Version is R2018a.
  4 comentarios
Jayesh Kamboj
Jayesh Kamboj el 11 de Sept. de 2020
K never mind I fixed it. Turns out I DID have a function called input already.
Dr. Kelsey Joy
Dr. Kelsey Joy el 27 de Nov. de 2021
It's so easy to accidentally create a script file or variable with an existing MATLAB function name. The worse I have ever seen was a student create a created a script file called "edit". Geez that took a LONG time to figure out! lol.

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 11 de Sept. de 2020
You have a custom made function named input() which shadows the inbuilt function. Rename it or remove it from the path.
  7 comentarios
Jayesh Kamboj
Jayesh Kamboj el 11 de Sept. de 2020
and output was 'built-in (C:\Program Files\MATLAB\R2018a\toolbox\matlab\lang\input)'
madhan ravi
madhan ravi el 11 de Sept. de 2020
LOL

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Desktop en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by