matrix input for sparseN.m
sparseN