Why Input function error?

6 次查看(过去 30 天)
Recently, i can't use any input function. i don't know why. Anybody could help? Thanks before
First problem:
Code: X=input('number:')
The second one:
Code: X=input('')
Usually, it always work..

采纳的回答

Walter Roberson
Walter Roberson 2019-10-3
You accidentally created a variable named input that is interfering with calling input as a function.
  3 个评论
Walter Roberson
Walter Roberson 2019-10-3
clear input
After that check your code to see if you assign anything to a variable named input and if so rename that variable.
David Biwono
David Biwono 2019-10-4
Thank you Walter! It worked!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by