Input doesn't work

3 visualizaciones (últimos 30 días)
Jerry
Jerry el 8 de Oct. de 2013
Comentada: Image Analyst el 8 de Oct. de 2013
I was working on writing a script but when I included the input function I received the following error: Attempt to execute SCRIPT input as a function: /Users/Jzhang/Documents/MATLAB/input.m Error in circle_area (line 2) radius=input('Enter the radius:'); I've tried the input function in other scripts as well and they were working before but not anymore. Can anyone help me figure out this problem? Thanks

Respuesta aceptada

Image Analyst
Image Analyst el 8 de Oct. de 2013
Don't call it input.m. input is the name of a built-in function. Call it something else, like myInput().
  12 comentarios
Jerry
Jerry el 8 de Oct. de 2013
nevermind, i got it. Thanks!
Image Analyst
Image Analyst el 8 de Oct. de 2013
Then please mark this answer as "Accepted."

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown 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