Main Content

detect

Detect signals using platform-mounted sensors

Description

dets = detect(ptfm,time) returns detections, dets, from all the sensors mounted on the platform, ptfm, at the specified time. This syntax applies when sensors do not require knowledge of any signals present in the scenario, for example, when the fusionRadarSensor object property HasInterference is set to false.

dets = detect(ptfm,signals,time) also specifies any signals, signals, present in the scenario. This syntax applies when sensors require knowledge of these signals, for example, when a radarSensor object is configured as an EM sensor.

dets = detect(ptfm,signals,emitterconfigs,time) also specifies emitter configurations, emitterconfigs. This syntax applies when sensors require knowledge of the configurations of emitters generating signals in the scenario. For example, when an fusionRadarSensor object is configured as a monostatic radar.

[dets,numDets] = detect(___) also returns the number of detections, numDets. This output syntax can be used with any of the input syntaxes.

[dets,numDets,sensorconfigs] = detect(___) also returns all sensor configurations, sensorconfigs. This output syntax can be used with any of the input syntaxes.

Input Arguments

collapse all

Scenario platform, specified as a Platform object. To create platforms, use the platform method.

Simulation time specified as a positive scalar.

Example: 1.5

Data Types: single | double

Signals in the scenario, specified as a cell array of radarEmission and sonarEmission emission objects.

Emitter configurations, specified as a structure. The fields of the emitter configuration are:

FieldDescription
EmitterIndex

Unique emitter index, returned as a positive integer.

IsValidTime

Valid emission time, returned as 0 or 1. IsValidTime is 0 when emitter updates are requested at times that are between update intervals specified by the UpdateInterval property.

IsScanDone

Whether the emitter has completed a scan, returned as true or false.

FieldOfView

Field of view of the emitter, returned as a two-element vector [azimuth; elevation] in degrees.

MeasurementParameters

Emitter measurement parameters, returned as an array of structures containing the coordinate frame transforms needed to transform positions and velocities in the top-level frame to the current emitter looking-angle frame.

Data Types: struct

Output Arguments

collapse all

Sensor detections, returned as a cell array of objectDetection objects.

Sensor configurations, returned as a structure. The fields of this structure are:

FieldDescription
SensorIndex

Unique sensor index, returned as a positive integer.

IsValidTime

Valid detection time, returned as true or false. IsValidTime is false when detection updates are requested between update intervals specified by the update rate.

IsScanDone

IsScanDone is true when the sensor has completed a scan.

RangeLimitsLower and upper range detection limits, returned as a two-element real-valued vector in meters.
RangeRateLimitsLower and upper range-rate detection limits, returned as a two-element real-valued vector in m/s.
FieldOfView

Field of view of the sensor, returned as a 2-by-1 vector of positive real values, [azfov;elfov]. azfov and elfov represent the field of view in azimuth and elevation, respectively.

MeasurementParameters

Sensor measurement parameters, returned as an array of structures containing the coordinate frame transforms needed to transform positions and velocities in the top-level frame to the current sensor looking-angle frame.

Data Types: struct

Number of detections reported, returned as a nonnegative integer.

Data Types: double

More About

collapse all

Version History

Introduced in R2018b

See Also

| |