Fixed bug in makeDsMatrix.m.