You can do vec(a[1,1,:])

2014-03-29 10:57 GMT+01:00 paul analyst <[email protected]>:
>
> whatever i'm no 1, but it is not important,
> How to slice vector b not SubArrary...
>>
>>
>> a=zeros(10,10,10)
>> for i=1:10^3
>> a[i]=i
>>
>> end
>>
>> OK! I have 3D array.
>>
>> Now I need one vecotr from any dimension.
>> If
>> b=slice(a,1,1,:)
>> Julia return SubArray not vector !
>> How to slice this (and other) vector from 3D array?
>> Paul
>>



--
Med venlig hilsen

Andreas Noack Jensen

Reply via email to