Update joint_hist.m

This should work now