Create a connection to the BBC micro:bit hardware connected to the
COM4 port, and read the acceleration along the three axes of the BBC micro:bit hardware
port.
data — Data read from accelerometer sensor double | ㎨
Three-dimensional accelerometer data from the BBC micro:bit board measured along the
x-, y-, and z- axes, relative to the position of the board, and specified in ㎨.
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.