Quantcast

Documentation Center

  • Trial Software
  • Product Updates

step

System object: phased.Platform
Package: phased

Output current position, velocity, and orientation axes of platform

Syntax

[P,V] = step(H,T)
[P,V,AX] = step(H,T)

Description

[P,V] = step(H,T) returns the current position, P, and the current velocity, V, of the platform. The method then updates the position and velocity using the equation P = P+VT where T specifies the elapsed time (in seconds) for the current step.

[P,V,AX] = step(H,T) returns the additional output AX as the platform's orientation axes when you set the OrientationAxesOutputPort property to true.

    Note:   The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object™ issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.

Examples

Define a platform at origin with a velocity of [100; 100; 0] in meters per second. Simulate the motion of the platform for 2 steps, assuming the time elapsed for each step is 1 second.

Hp = phased.Platform([0; 0; 0],[100; 100; 0]);
T = 1;
[pos,v] = step(Hp,T)
[pos,v] = step(Hp,T)
Was this topic helpful?