MATLAB: How to create a 3D plot where dimensions refer to spatial coordinates of the points and each point has different size (different diameter).

Hi All
I am wondering how can I create a 3D plot where dimensions refer to spatial coordinates of the points and each point has different size (different diameter)? For example consider plotting some points in a rectangle cube that each point (sphere) has different size. (spatial locations and sizes follow uniform distribution)
Thanks

Best Answer

The scatter3 function can probably do everything you need.