The function scatter2Pcolor is directly inspired from a script given by . I have re-written this script in the form of a function, which is more convenient. I have found it particularly useful when it comes to deal with large set of data.
How the function works ? -> it is very well explained in .
The present submission contains:
- The function scatter2Pcolor.m
- An example file Example.m
An outstanding FileExchange submission that presents some similarities with the present one is 
All the credit goes to  for this idea.
Minor correction in the function description
NaN or Inf values in the coordinates of the points does not lead to an error any more (cf. updated example).
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.