External Interfaces Previous page   Next Page

Data Storage

All MATLAB data is stored columnwise, which is how Fortran stores matrices. MATLAB uses this convention because it was originally written in Fortran. For example, given the matrix

its dimensions are

and its data is stored as

diagram showing storage of the data in the matrix a


Previous page  MATLAB Data Data Types in MATLAB Next page

© 1994-2005 The MathWorks, Inc.