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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:55:04+00:00 2026-05-26T08:55:04+00:00

I have a large set of data that I’ve collected that I’d like to

  • 0

I have a large set of data that I’ve collected that I’d like to display in a 3-D scatter plot. The data is contained in a text file.

The data is organized like so

1 1 1 10.8
2 1 1 3.4
4 1 1 6.1
8 1 1 4.5
1 2 1 7.8
...
8 8 8 11.9

The first three tokens in each line should represent (x,y,z) points. In the 3-D scatter plot, there should be a dot for each of these points.

The color of the dots depends on the fourth token. Basically, the closer the fourth parameter is to the max value, the closer it will be to the color red. The close the fourth parameter is to the min value, the bluer it will be.

I’m pretty sure that the scatter3(X,Y,Z,S,C) function does this, but I’m not an expert.

Here’s what my data variable contains:

Data Variable

  • 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-26T08:55:05+00:00Added an answer on May 26, 2026 at 8:55 am

    Try this (assume data is the array you presented in your question):

    x = data(:,1);
    y = data(:,2);
    z = data(:,3);
    s = ones(size(data,1), 1) * 20; %sizes of markers
    c = data(:,4); %color data
    
    scatter3(x,y,z,s,c);
    colorbar;
    

    Or you can simply do it inline:

    scatter3(data(:,1),data(:,2),data(:,3),ones(size(data,1), 1)*20,data(:,4));
    colorbar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large real 1-d data set called r. I would like plot:
I have a file that goes thru a large data set and splits out
So I have a Python file that contains a large set of data of
So I have a large set of data that looks like this [('ART', [100,
I have a very large data set that I'd like to craft into a
I have a large set of data that is generated from a web service
I have a large data set that I'm working with in excel. About 1000+
I have a very large possible data set that I am trying to visualize
I have a large data set of GPS collar locations that have a varying
I have a data set in MongoDB that involves a large set of emails

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.