how to define index for a matrix as integer

조회 수: 4 (최근 30일)
sundus
sundus 2014년 5월 9일
댓글: dpb 2014년 5월 9일
[i]=mod(D(1),N)+1; I got this error Attempted to access M(2,2); index must be a positive integer.
while the value of i was 2.0000
  댓글 수: 1
dpb
dpb 2014년 5월 9일
Need in context including size(M). The answer is in what isn't shown and likely not exactly here as 2,2 are both positive integers.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by