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

Have something to add?

Similar Discussions: Plotting particles in MATLAB
  1. Plotting in matlab (Replies: 0)

  2. MATLAB plots (Replies: 1)

  3. Matlab Plot (Replies: 2)

  4. Plotting in MATLAB (Replies: 8)

  5. Plotting with MATLAB (Replies: 1)