handle R2012b missing flip() command