quikr now works! the numbers are almost identical to matlab (is 6th digit precision an issue?). use a vflip and don't transpose and it works