sparse function matlab code example Example: sparse matrix matlab S = (6,1) 475 (5,2) 305 (10,3) 960 (9,10) 444