Additional Information

Instead of using the zerom function, create a geographic cells reference object using the georefcells function and a matrix of zeros using the zeros function. This example shows how to update your code.

Will be removedRecommended
[Z,refvec] = zerom(latlim,lonlim,scale); R = georefcells(latlim,lonlim,1/scale,1/scale);
Z = zeros(R.RasterSize);