SCATTERSHAPE is used with the patch handles returned as output from SCATTER, to plot arbitrary shapes instead of markers.
The example doesn't function
??? Error using ==> scattershape
First input must be an array of handles.
Sent in wrong version; fixed FOR loop