# NOT RUN {
out = list();
out[[1]]= genSparseMatrix( 20,0.5,"tri" );
out[[2]]= genSparseMatrix( 20,0.5,"arm" );
out[[3]]= genSparseMatrix( 20,5,"band" );
out[[4]]= genSparseMatrix( 20,0.5,"rand" );
out[[5]]= genSparseMatrix( 7,0.5,"tree" );
out[[6]]= genSparseMatrix( 20,5,"multi" );
out[[7]]= genSparseMatrix( 5,4,"block" );
par(mfrow=c(2,3));
lab = c("tri","arm","band","rand","tree","multi","block");
for( i in 2:7 )
image(out[[i]],main=lab[i]);
# }
Run the code above in your browser using DataLab