%% Check Occupancy Status and Get Occupancy Values in 3-D Occupancy Map
% Import a 3-D occupancy map.

map3D = importOccupancyMap3D("citymap.ot")

% Display the map.

show(map3D)

% Check the occupancy statuses of different locations and get their occupancy values.

iOccVal1 = checkOccupancy(map3D,[50 15 0])
OccVal1 = getOccupancy(map3D,[50 15 0])
iOccVal2 = checkOccupancy(map3D,[50 15 15])
OccVal2 = getOccupancy(map3D,[50 15 15])
iOccVal3 = checkOccupancy(map3D,[50 15 45])
OccVal3 = getOccupancy(map3D,[50 15 45])

% Copyright 2020 The MathWorks, Inc.