www.gusucode.com > phased 案例源码 matlab代码程序 > phased/MotionSinglePlatformExample.m

    %% Simulate motion of a platform
% Create a platform at the origin having a velocity of (100,100,0) meters
% per second. Simulate the motion of the platform for two time steps,
% assuming the time elapsed for each step is one second. The position of
% the platform is updated after each step.

% Copyright 2015 The MathWorks, Inc.

sPlat = phased.Platform([0; 0; 0],[100; 100; 0]);
T = 1;
%%
% At the first call to step, the position is at its initial value.
[pos,v] = step(sPlat,T);
pos
%%
% At the second call to step, the position changes.
[pos,v] = step(sPlat,T);
pos