Download MATLAB C Math Library 2.0 User's Guide

Transcript
Overview
Terminology
These two diagrams illustrate the terminology used in this chapter.
Indices
Target Array
A ( 3, 1 )
Subscript
Figure 5-1: From the MATLAB Perspective
Index Value
mlfIndexRef(A, "(?,?)", mlfScalar(3), mlfScalar(1));
Target Array
Index Value
Indexing String
Figure 5-2: From the MATLAB C Math Library Perspective
Dimensions and Subscripts
In MATLAB
There are three types of data in MATLAB: multidimensional numeric arrays,
cell arrays and structures (objects are just a special kind of structure).
Therefore, there are three types of indexing, one for each type of data:
5-3