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 8011147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:56:42+00:00 2026-06-04T18:56:42+00:00

I have a large data matrix with 5 columns. 5th column contains many zeros.

  • 0

I have a large data matrix with 5 columns. 5th column contains many zeros. I want to do scatter(data(:,4),data(:,5)) and set a different color for points/rows where value in 5th column is zero.

I will then draw scatter plot of different columns but with same condition i.e. different color where values in 5th column are zeros.

  • 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-04T18:56:43+00:00Added an answer on June 4, 2026 at 6:56 pm

    You can easily set the different color-flag as a fourth parameter in a function:

    scatter(d(:,4), d(:,5), 7, d(:,5)==0);
    

    Here d(:,4) and d(:,5) are the coordinates of points, 7 is the size of the point, and d(:,5)==0 is the color-flag (for different values of d(:,5), different colors are chosen).

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

Sidebar

Related Questions

I have a large matrix mdat (1000 rows and 16 columns) contains first column
I have a large data set and i want to convert it into array.
I have a large data set with 11 columns and 100000 rows (for example)
Interpolating Large Datasets I have a large data set of about 0.5million records representing
I have a large data set that I'm working with in excel. About 1000+
I have large sets of data but somewhere in columns there is missing data
I have a very large data set that I'm trying to find the smallest
I have large tables, contains DateTime columns to store exact time of some events
I have a large data set of tuples containing (time of event, latitude, longitude)
I have a large data set of nucleotide sequences (long strings simply put) which

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.