Phantom Documentation

[Help Home] [Phantom Home]
length

int length(multi-type)

Return Type: int
Parameters: multi-type

Description:
This function returns the number of elements in the input array.

Example Code
1 >>int i = 10;
2 >>disp(length(i));
1
3 >>i[2] = 4;
4 >>disp(length(i));
3
5 >>i[2][2] = 22;
6 >>disp(length(i));
9


 


Copyright 2000-2011 Phantom Automated Solutions