Input doesn't work

5 ビュー (過去 30 日間)
Jerry
Jerry 2013 年 10 月 8 日
コメント済み: Image Analyst 2013 年 10 月 8 日
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

採用された回答

Image Analyst
Image Analyst 2013 年 10 月 8 日
Don't call it input.m. input is the name of a built-in function. Call it something else, like myInput().
  12 件のコメント
Jerry
Jerry 2013 年 10 月 8 日
nevermind, i got it. Thanks!
Image Analyst
Image Analyst 2013 年 10 月 8 日
Then please mark this answer as "Accepted."

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by