Input doesn't work

3 次查看(过去 30 天)
Jerry
Jerry 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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by