Main Content


Create copy of ahrs10filter

Since R2020b



newFilter = copy(filter) returns a copy of the ahrs10filter, filter, with the exactly same property values.


collapse all

Create an ahrs10filter object.

filter = ahrs10filter;

Create a copy of the filter.

filterCopy = copy(filter);

Change the IMU sample rate of the original filter to be 10 Hz.

filter.IMUSampleRate = 10;

Verify the IMU sample rate of the copied filter has the default value, 100 Hz.

ans = 100

Input Arguments

collapse all

Filter to be copied, specified as an ahrs10filter object.

Output Arguments

collapse all

New copied filter, returned as an ahrs10filter object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020b

See Also