I wrote these Matlab functions a while ago and put them on my (old) website. I am just putting them here too so that they are available. In the future I will post code on GitHub.
-
scatterheat. Matlab function to produce scatter heat plots.
-
csv2mat_mixed. Matlab function to import (Stata) data (numeric and string) from csv file into Matlab. Modification of csv2mat_numeric by Solomon Hsiang.
-
pctile. Matlab function to calculate the corresponding percentile of each element of a vector or matrix.