On 19.04.2012 15:39, Jed Brown wrote: > Does replacing linspace with (1:2:2*m*n-1) work without floor? > > There isn't a guarantee that whatever rounding error committed by > linspace always rounds away from zero (so that floor sends it in the > right direction).
You're right, it is undefined. Your variant works. -- Regards, Alexander
