Why Input function error?
조회 수: 1 (최근 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..
댓글 수: 0
채택된 답변
Walter Roberson
2019년 10월 3일
You accidentally created a variable named input that is interfering with calling input as a function.
댓글 수: 3
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!