Help CenterHelp Center
Convert world coordinates to grid indices
ij = world2grid(map,xy)
ij = world2grid(map,xy) converts an array of world coordinates, xy, to a [rows cols] array of grid indices, ij.
ij
map
xy
[rows cols]
collapse all
binaryOccupancyMap
Map representation, specified as a binaryOccupancyMap object.
World coordinates, specified as an n-by-2 vertical array of [x y] pairs, where n is the number of world coordinates.
[x y]
Grid indices, specified as an n-by-2 vertical array of [i j] pairs in [rows cols] format, where n is the number of grid positions.
[i j]
binaryOccupancyMap | grid2world
grid2world
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office