Why Input function error?

5 Ansichten (letzte 30 Tage)
David Biwono
David Biwono am 3 Okt. 2019
Kommentiert: David Biwono am 4 Okt. 2019
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..

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Okt. 2019
You accidentally created a variable named input that is interfering with calling input as a function.
  3 Kommentare
Walter Roberson
Walter Roberson am 3 Okt. 2019
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 am 4 Okt. 2019
Thank you Walter! It worked!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by