MATLAB: How to change the name “nz” in the x axis of the funcion spy axisplotspy I want to change only "nz" in the x axis of the spy's plot, not the number which tell me how many elements are nonzero elements. Thank you! Best Answer That's just the xlabel of the axes.>> B = bucky;>> spy(B);>> xlabel(sprintf('Number of nonzero elements: %d', nnz(B))) Related SolutionsMATLAB: Spy with grid Many thanks. MATLAB: Funcion “solve” version No, Solve optimization problem Introduced in R2017b Related QuestionHow to remove axis from a sparsity plot with spy functionSpy, making nodes more visibleSparse Block Matrix ConstructionMultiplication of Sparse complex matrix and a full matrixUndefined funcion variable error
Best Answer