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

  • SEARCH
  • Home
  • 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 9201605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:03:18+00:00 2026-06-17T23:03:18+00:00

So I have this matrix here , and it is of size 13 x

  • 0

So I have this matrix here, and it is of size 13 x 8198. (I have called it ‘blah’).

This is a sparse matrix, in that, most of its entries are 0. When I do an imagesc(blah), I get the following image:

enter image description here

Clearly this is worthless because I cannot clearly see the non-zero elements. I have tried playing around with the color scaling, but to no avail.

Anyway, I was wondering if there might be a nicer way to be able to visualize this matrix in MATLAB somehow? I am designing an algorithm and would like to be able to see certain things int teh matrix.

Thanks!

  • 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-06-17T23:03:19+00:00Added an answer on June 17, 2026 at 11:03 pm

    Try spy; it’s intended for exactly that.

    The problem is that spy makes the axes equal, and your data is 13 x 8198, so the first axis is almost invisible compared to the second one. daspect can fix that.

    >> spy(blah)
    >> daspect([400 1 1])
    


    spy doesn’t have an option to plot differently by signs. One option would be to edit the source to add that capability (it’s implemented in matlab, and you can get the source by running edit spy). An easier hack, though, is to just spy the positive and negative parts separately:

    >> daspect([400 1 1]);
    >> hold on;
    >> spy(max(blah, 0), 'b');
    >> spy(min(blah, 0), 'r');
    

    This has the unfortunate side effect of making places where positives and negatives are close together appear dominated by the second one plotted, here the negatives (e.g. in the top rows of your matrix). I’m not sure what to do about that other than maybe fiddling with marker sizes. You could of course do it in both orders and compare.

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

Sidebar

Related Questions

I have this matrix of size 10000 by 1. I want to remove some
I have this following numpy matrix that I want to sort in ascending order
Supose I have a matrix. This matrix is blank except some points that create
I have a matrix of objects that contains data in this form: name A,2,name
I have this method (Matrix::WriteToArray(double &CopyOfArray)) that I want to write a copy of
I have a matrix multiply code that looks like this: for(i = 0; i
so we have this matrix a=[1;2;3] and we want to multiply it by itself
I have a string like this: matrix(10, 0, 1, 0, -198, 23) Then I
I have a matrix and I need to find a pattern inside this matrix.
If I have this: A * f = g; A: upper triangular matrix (n

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.