MATLAB 帮助中心
Restart simulation of radar scenario
Since R2021a
restart(scenario)
restart(scenario) restarts the simulation of the radar scenario, scenario, from the beginning and sets the SimulationTime property of scenario to zero.
scenario
SimulationTime
example
collapse all
Create a new radar scenario.
scenario = radarScenario;
Add a platform that follows a 25 m trajectory along the x-axis at 20 m/s.
plat = platform(scenario); plat.Trajectory = waypointTrajectory('Waypoints',[0 0 0; 25 0 0], ... 'TimeOfArrival',[0 25/20]);
Run the simulation to completion.
rec = record(scenario)
rec=13×1 struct array with fields: SimulationTime Poses
Display the scenario simulation time after the simulation is complete.
scenario.SimulationTime
ans = 1.3000
Restart the simulation and confirm that the scenario simulation time is reset to 0.
0
restart(scenario); scenario.SimulationTime
ans = 0
radarScenario
Radar scenario, specified as a radarScenario object.
Introduced in R2021a
radarScenario | advance | record
advance
record
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处