Text-only
Table of Contents (
frame
/
no frame
)
(12) Matrix Indexing
Indexing into a Matrix (Array) in MATLAB
Two different ways of indexing:
Use the row column format (row,column)
the indicies start from the top left corner with index of 1
Use the absolute index
indexed in column major order
absolute indices go from top to bottom and left to right
Try:
>> first_mat
>> A(2,4)
ans =
4
>>A(17)
ans =
4
Matrix_Indexing.src last modified Sep 29, 2009
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College