Vertigo could be either from a peripheral (labyrinth and vestibular nerve) or a central disorder (central nervous system). Central vertigo is usually a result of an abnormal processing of the vestibular sensory input by the central nervous system. See the image below.
scatterhist(x,y) creates a 2-D scatter plot of the data in vectors x and y, and displays the marginal distributions of x and y as univariate histograms on the horizontal and vertical axes of the scatter plot, respectively. example.
h = scatterhist(___) returns a vector of three axis handles for the scatter plot, the histogram along the horizontal axis, and the histogram along the vertical axis, respectively, using any of the input arguments in the previous syntaxes.