add orientation matlab script