how to input in matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
ask the user for three numbers in the form of a vector,[a b c].then tell the user the number of real-valued roots there are for the equation y=a*x^2+b*x+c having the user's values for a,b,c.
댓글 수: 0
답변 (2개)
Youssef Khmou
2014년 1월 30일
편집: Youssef Khmou
2014년 1월 30일
you can use input instead of fscanf, and enter scalar, vector or matrix :
a=input(' Player 1: ');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!