Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plotting particles in MATLAB

  1. Aug 29, 2007 #1
    I have data for the positions of particles in 3D space and I'm trying to use MATLAB in order to visualize it. How do I plot little balls in 3D? The only function I can find at the minute is streamParticles but I'm looking for something simpler.

    EDIT: Nevermind, I figured it out. You simply do plot3(x,y,z,'.'), where x, y, and z are arrays of coordinates.

    I do have another question, though. How do you find the spherical harmonics component of a point in MATLAB? In other words, if you have a set of points [tex]r_i[/tex], how would you find [tex]Y_l_m (r_i)[/tex]?
    Last edited: Aug 29, 2007
  2. jcsd
  3. Aug 29, 2007 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    You need to expand the points in a series of [tex]Y_l_m (r_i)[/tex]. It is a fairly straightforward proceedure to do so.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Plotting particles MATLAB Date
Plot a stereographic hypercube in a Mac's Grapher.app? Saturday at 8:22 AM
Mathematica Errors when plotting but not when evaluating Tuesday at 12:12 PM
Mathematica Color Contour Plots Mar 8, 2018
Mathematica Taking forever to plot Feb 27, 2018
[MATLAB] Modeling response of a particle in an anharmonic potential Apr 8, 2015