Create a connection to the BBC micro:bit hardware connected to the
COM4 port., and read the magnetic field along the three axes of the BBC micro:bit
hardware.
data — Data read from magnetometer sensor 1-by-3 vector
Three-dimensional data of the surrounding magnetic field intensity. The data is
measured along the x-, y-, and z- axes, relative to the position of the board.
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.