Array Declarations

1 Declaring Arrays in one way



An array variable can be declared by appending dimensions within square brackets after a type name or after a variable name.



1.1 Simulation of ArrayDim


Take a look at the result at time=0:





2 Declaring Arrays in another way

The same declarations can be expressed as:



2.1 Simulation of ArrayDim


Take a look at the result at time=0:





3 Declaring Row Matrices and Column Matrices

Column matrices and row matrices can be declared as below:



3.1 Simulation of ArrayDim


Take a look at the result at time=0:





4 Declaring Empty Arrays

It is also allowed to declare empty arrays. An Empty Array has at least one dimension of size 0 and contains no array elements.