perturb
Description
perturbs the baseline radar scenario, offsets
= perturb(scenario
)scenario
, and returns offset
values. Use the perturbations
function
to define the perturbations on objects, such as trajectories, sensors, and platforms, in the
scenario.
Examples
Radar Scenario Perturbation
Create a radar scenario and add a platform.
scenario = radarScenario; p = platform(scenario);
Add a trajectory to the platform.
p.Trajectory = waypointTrajectory('Waypoints',... [30 -40 -3; 30 -20 -3; 20 -10 -3; 0 -10 -3; -10 -10 -3]*1e3, ... 'TimeOfArrival', [0; 100; 150; 350; 450], ... 'Course', [90;90;180;180;180]);
Plot the trajectory.
tp = theaterPlot("XLimits",[-20 35]*1e3,"YLimits",[-45 -5]*1e3); trajPlotter1 = trajectoryPlotter(tp,'DisplayName','Original','Color','b'); plotTrajectory(trajPlotter1,{p.Trajectory.Waypoints});
Define perturbations for the waypoints. The following defines perturbations on the first and last waypoints as uniform distributions.
perturbations(p.Trajectory, "Waypoints", "Uniform",... [-2000 -2000 0; 0 0 0; 0 0 0; 0 0 0; -2000 -2000 0],... [+2000 +2000 0; 0 0 0; 0 0 0; 0 0 0; +2000 +2000 0]);
Perturb the scenario and observe the changed waypoints of the platform.
perturb(scenario); trajPlotter2 = trajectoryPlotter(tp,'DisplayName','Perturbed','Color','g'); plotTrajectory(trajPlotter2,{p.Trajectory.Waypoints})
Input Arguments
scenario
— Radar scenario
radarScenario
object
Radar scenario, specified as a radarScenario
object.
Output Arguments
offsets
— Property offsets
array of structures
Property offsets, returned as an array of structures. Each structure contains these fields.
Field Name | Description |
---|---|
PlatformID | ID of the platform |
PerturbedObject | Perturbed object mounted on the platform |
Property | Name of the perturbed property |
Offset | Offset values applied in the perturbation |
PerturbedValue | Property values after the perturbation |
Version History
Introduced in R2021a
See Also
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)