Warning: Input arguments must be scalar.
조회 수: 88 (최근 30일)
이전 댓글 표시
X=zeros(1,m1);
when i run this command it gives me the Warning: Input arguments must be scalar. can anyone help me with what causes this problem and what i can do to solve it!!
댓글 수: 0
답변 (2개)
Image Analyst
2012년 6월 19일
Hover over m1 when you've stopped there at a breakpoint. Chances are m1 is either a real number with some fractional part, or a matrix, or a negative number, or some other illegal entry.
Christoph
2012년 6월 19일
hi namrata,
you should check if m1 is a scalar. It seems m1 is a vector or someting else.
reagrds, CN
댓글 수: 1
Walter Roberson
2012년 6월 19일
I agree: m1 was probably created by applying size() to a vector, and the cure is probably to use length() of the vector instead.
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!