Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7655183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:26:52+00:00 2026-05-31T12:26:52+00:00

When plotting a sparsity matrix using spy in MATLAB, the text nz=x , where

  • 0

When plotting a sparsity matrix using spy in MATLAB, the text nz=x, where x is an integer appears at the bottom. This number presumably refers to the number of nonzero elements in the matrix. How can one suppress this output from appearing in the final plot?

The nz= text that accompanies sparsity plots can be seen here:enter image description here

This plot is from the MATLAB documentation on spy (the image URL is here).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:26:54+00:00Added an answer on May 31, 2026 at 12:26 pm

    I don’t know if there is a better way, but you can open the spy.m file:

    edit spy.m
    

    and comment out the xlabel(([‘nz = ‘… line

    You can even check the nargin, i.e., change your spy’s definition and check if you have for example a boolean or not to show nz accordingly…

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am plotting a financial candlestick chart using this MATLAB function: http://www.mathworks.com/help/toolbox/finance/candlefts.html How do
I am plotting a 7x7 pixel 'image' in MATLAB, using the imagesc command: imagesc(conf_matrix,
I'm plotting a group of curves, using facet in ggplot2. I'd like to have
I'm plotting on top of an image in Matlab. Sometimes, I can't see what's
I came across this page: Plotting Tools where I found a set of tools
I'm plotting rose diagrams using Matlab7. And I would like to add an extra
I am plotting a confusion matrix with matplotlib with the following code: from numpy
I'm plotting a TimeTableXYDataset using a StackedXYBarRenderer . Unfortunately the colours of each series
I'm using rpy2 to do data analysis and plotting in python. It works fine
When plotting multiple data series using both line specification ( X , Y ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.