It's not a two-column vector, it's a rank-2 tensor i.e. a matrix, the
number of arguments to ones gives the number of dimensions, e.g. ones(T,10)
will give a 1 dimensional vector of 10 elements, ones(T,10,1) gives a 10x1
matrix, ones(T,10,10) gives a 10x10 matrix, ones(T,10,1,1) gives a 10x1x1 3
tensor etc.


On Sat, Feb 8, 2014 at 11:51 PM, Jay Kickliter <[email protected]>wrote:

> I just wasted several hours on this. I kept getting errors when I tried to
> use this to create some filter coefficients:
>
> julia> b = ones(Float32, filtlen, 1)
>
> 10x1 Array{Float32,2}:
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>  1.0
>
>
> I finally realized that two in  Array{Float32,2}. filt, fftfilt, and
> firfilt were all giving me errors.
>
> Just to make sure I tried:
>
> julia> b[:,2]
>
> BoundsError()
>
>
> Is this normal behavior or a bug?
>
>
>
>
>

Reply via email to