matrix input for sparseN.m