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.(adsbygoogle = window.adsbygoogle || []).push({});

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]?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Plotting particles in MATLAB

Loading...

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 |

**Physics Forums - The Fusion of Science and Community**