fixed duquad_matlab