clc;
clear all;
close all;
n = 100;%所产生矩阵的大小
A= sprandsym(n,0.015,0.1,1);%产生系数矩阵函数;
spy(A)矩阵图形化相当于imshow(A)