validScan = removeInvalidData(scan)returns
a new lidarScan object with all Inf
and NaN values from the input scan removed.
The corresponding angle readings are also removed.
validScan = removeInvalidData(scan,Name,Value)provides
additional options specified by one or more Name,Value
pairs.
Lidar scan readings, specified as a lidarScan object.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and encloseNamein quotes.
Example: ["RangeLimits",[0.05 2]
RangeLimits — Range reading limits two-element vector
Range reading limits, specified as a two-element vector,
[minRange maxRange], in meters. All range
readings and corresponding angles outside these range limits are
removed
Data Types: single | double
AngleLimits — Angle limits two-element vector
Angle limits, specified as a two-element vector, [minAngle
maxAngle] in radians. All angles and corresponding range
readings outside these angle limits are removed.
Angles are measured counter-clockwise around the
positivez-axis.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.