主要内容

installimuparts

R2026b

Install IMU hardware part datasets

Since R2026b

Description

installimuparts installs the IMU hardware part datasets provided with the current MATLAB® version. After installing the IMU hardware part datasets, you can use the loadimupart function to load specific IMU hardware parts as fully parameterized imuSensor System objects™.

Run this function once per MATLAB installation or after updating to a newer IMU parts dataset.

For a list of available IMU hardware parts, see loadimupart.

example

Examples

collapse all

Before loading from the MathWorks IMU collection, run installimuparts if you have not already done so for your current MATLAB® installation. Rerun it only to update the collection.

installimuparts

Load the ISM330IS IMU from STMicroelectronics in the MathWorks® IMU collection using the "accel-range:16g|gyro-range:1000dps" operating mode. You can use tab complete to see all available operating modes for an IMU part.

imu = loadimupart("MW.IMU","STMicroelectronics","ISM330IS","accel-range:16g|gyro-range:1000dps")
imu = 
  imuSensor with properties:

          IMUType: 'accel-gyro-mag'
       SampleRate: 100
      Temperature: 25
    MagneticField: [27.5550 -2.4169 -16.0849]
    Accelerometer: [1×1 accelparams]
        Gyroscope: [1×1 gyroparams]
     Magnetometer: [1×1 magparams]
     RandomStream: 'Global stream'

Version History

Introduced in R2026b

See Also