Text-only Table of Contents (frame/ no frame)
(5) Multidimensional Arrays Previous Top Next

Multidimensional Arrays    

  
Matlab Multidimensional Arrays:

Examples:

To make multidimensional array:
>> a = [2 4 6; 7 8 9; 1 2 3]
>> a(:,:,2)= [10 11 12; 0 1 2; 4 5 6]


When you add elements and expand the size
Unspecified elements are set to zero

>> a(:,:,4) = [ 1 1 1; 2 2 2; 3 3 3]




Previous Top Next


Multidimensional_Arrays.src  last modified Oct 17, 2007 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College