MATLAB Answers

Why Input function error?

9 views (last 30 days)
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..

Accepted Answer

Walter Roberson
Walter Roberson on 3 Oct 2019
You accidentally created a variable named input that is interfering with calling input as a function.
  3 Comments
David Biwono
David Biwono on 4 Oct 2019
Thank you Walter! It worked!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!