Matlab create array of coordinates. Empty values can be filled by NaN.

Lawn Fungus