'The scatter3 plot needs vectors, not matrices, but you can do that easily enough by using meshgrid to create the matrices and then creating vectors from them as RA(:), DEC(:) and A(:).'
MATLAB: How to create matrices from a meshgrid function
3d plotsplotplotting
Best Answer