 |
Create vectors, array subscripting, and for-loop iterators - MATLAB colon (:)
j:k is the same as [j,j+1,j+2,...,j+m], where m = fix(k-j). In the case where both j and k are integers, this is simply [j,j+1,...,k]. This syntax returns an empty matrix when j > k. j:i:k is the same as [j,j+i,j+2i, ...,j+m*i], where m = fix((k-j)/i). Th
www.mathworks.com |
 |