function wb_compass_get_lookup_table(tag, sampling_period) % Usage: wb_compass_get_lookup_table(tag, sampling_period) % Matlab API for Webots % Online documentation is available here size = calllib('libController', 'wb_compass_get_lookup_table_size', tag); pointer = calllib('libController', 'wb_compass_get_lookup_table', tag); setdatatype(pointer, 'doublePtr', 3 * size, 1); result = get(pointer, 'Value');