readMagneticField
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
[
returns one sample of the magnetic field data on x, y, and z axes read from the
sensor in units of µT (microtesla) along with the magReadings,timestamp] = readMagneticField(sensorobj)timestamp.
Timestamp is optional.
Note
The readMagneticField function is available for the
MPU9250, LSM9DS1,
LSM303C, and ICM20948
sensors.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a