Why Input function error?

6 ビュー (過去 30 日間)
David Biwono
David Biwono 2019 年 10 月 3 日
コメント済み: David Biwono 2019 年 10 月 4 日
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 Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by