Input doesn't work

7 Ansichten (letzte 30 Tage)
Jerry
Jerry am 8 Okt. 2013
Kommentiert: Image Analyst am 8 Okt. 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by