%% Inspect Sample Laser Scan Message
% Load, inspect, and display a sample laser scan message.
% Create sample messages and inspect the laser scan message data.The scan object is a sample ROS LaserScan message object.

exampleHelperROSLoadMessages
scan

%
% Get ranges and angles from the object properties. Check that the ranges and angles are the same size.

ranges = scan.Ranges;
angles = scan.readScanAngles;
size(ranges)

%

size(angles)

%

plot(scan)

%
% Copyright 2019 The MathWorks, Inc.