Why Input function error?

조회 수: 1 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by