Modified Vertical_transform.m