Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Will be exposed in a new work sheet
There is no bug.
You are calculating L incorrectly. It should be length(Y).