b = [1 2 3; 3 4 5; 6 7 8];

ndim_b = length(size(b))

On Monday, March 10, 2014 3:45:58 PM UTC-7, Renoir wrote:
>
> What sintax have i to use to get an-dim array?
>
> This code
>
> a = [1 2 3; 4 5 6]
> b = [1 2 3; 3 4 5; 6 7 8]
> println(ndims(a))
> println(ndims(b))
>
> outputs
> 2
> 2
>
> i would have expected
>
> 2
> 3
>
> Obviously i misunderstand something....
>
> Regards.
>

Reply via email to