i use this to make an accumulator array but it comes error
mat=zeros(250,250);x=linspace(0,25.1923,100);y=linspace(-7.9089e+003,313,100);index=sub2ind(size(mat),round(y),round(x));
i run that code but 'out of range subscript'
that's why ? explain me please
Best Answer