Create median.m