ILNumerics - Technical Computing Tools

High Performance Framework for Visualization

and Computing in Industry and Science




Subarrays reflect parts of the original array - a very common feature when working with arrays. This tutorial describes all possible ways of creation, gives decision hints and explains the syntax in detail. In order to get the clue really fast, consult the Quick Start Guide for the most common subarray features.



Subarrays are extracted from parts of the original array. Ranges for the subarray are defined in a flexible yet efficient way.


Compatibility with Matlab®

Creating subarrays for ILNumerics is very similar to the way of creating subarrays in Matlab®. In fact, the functionality is fully compatible and even includes the following features:

  • A[2,3] = 4.0; - writing to ranges (left side assignment)
  • A = ones(1,2); A[3,3] = 1.0; - automatic array expansion on set access
  • Automatic array reshaping in get access with last dimension specified as 'full'
  • Partial removal of dimensions, in Matlab: 'A(:,2) = [ ]')
  • A[B] = C[D] - sequential index read/ write access