This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Measure linear acceleration along the X, Y and Z axes in m/s2.


The block outputs acceleration as a 1-by-3 vector of single–precision values.

The following illustration shows the orientation of the positive X, Y, and Z axes for the Apple iOS device.

The orientation of the axes relative to the device remains constant. For example, if you place the device face-up on a table, the Z-axis measures the acceleration of Earth’s gravity and outputs ≈9.81 m/s^2. The X and Y axes, which are perpendicular to the acceleration of Earth’s gravity, both output ≈0.00 m/s^2.

During simulations, this block outputs zeros. See Block Produces Zeros or Does Nothing in Simulation (Simulink).

Dialog Box

Sample time

Specify how often the block reads the sensor.

Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

Introduced in R2015a