Modified qsubplot.m