title: Displaying 3-D scatter plot w/ Color Dependent on Data
body: <p>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.</p>
  
  <p>The data is organized like so</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>I'm pretty sure that the scatter3(X,Y,Z,S,C) function does this, but I'm not an expert.</p>
  
  <p>Here's what my data variable contains:</p>
  
  <p><img src="https://i.stack.imgur.com/zpNXr.png" alt="Data Variable"></p>