I am trying to convert a vector data corresponding to countries in a shapefile to raster at 0.1 degree resolution,
For this I am using
functions. Here is what i was trying but MatLab throws up an error.
lat = [states.Y];
lon = [states.X];
[Z, R] = vec2mtx(lat, lon, ...
10, [-90 90], [-180 180], 'filled');
Z = imbedm(lat, lon, [states.Lit2005], Z, R)
Error using imbedm (line 53)
Function imbedm expected its LAT, LON, and VALUE inputs to have the same size.