Update joint_hist.m