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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:21:21+00:00 2026-06-04T00:21:21+00:00

How can I visualize a data set with a large amount of features using

  • 0

How can I visualize a data set with a large amount of features using scatter3 plot in matlab. I already have it reduce to three features using PCA, but how do I get it to show up in different colours depending on if the y value (or labelled value) for the corresponding row is 1 or 0?
P.S. PCA return a [675 x 3] matrix, which is the 675 examples in the data set, with the first 3 principle components.

  • 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-04T00:21:23+00:00Added an answer on June 4, 2026 at 12:21 am

    I’m not too up-to-date on my matlab, but I believe you can do it by firstly setting hold on then looping through and plotting each row of your matrix using plot3, and setting the colour based on the label. eg

    hold on
    for i=1:675,
        if (label == 1)
            plot3(mat(i,1), mat(i,2), mat(i,3), '-xr');
        elseif (label == 2)
            plot3(mat(i,1), mat(i,2), mat(i,3), '-og');
        elseif (label == 3)
            plot3(mat(i,1), mat(i,2), mat(i,3), '-b');
        end
    end
    hold off
    

    This may need some tweaking though, since it is a while since I have used Matlab. Hope it helps 🙂

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

Sidebar

Related Questions

I'm trying to visualize some data I have stored on a regular grid using
In my WPF application im trying to visualize some temperature data. I have a
I have a series of spectral data which I want to plot in a
To visualize data from F# interactive console, I can do the following: open System.Windows.Forms
How can I visualize on axis x only the integer values? I plot the
I'm doing a homework on data mining. Now I have a data set which
I want to visualize some data in my Windows Phone app. So I'm using
How can I monitor or visualize memory fragmentation of a delphi application?
Can someone recommend an up to date library for data Sanitization in PHP ?
I'm using matplotlib at the moment to try and visualise some data I am

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.