Main Content

copy

Create copy of insfilterErrorState

Since R2020b

Description

example

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

Examples

collapse all

Create an insfilterErrorState object.

filter = insfilterErrorState;

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.

filterCopy.IMUSampleRate
ans = 100

Input Arguments

collapse all

Filter to be copied, specified as an insfilterErrorState object.

Output Arguments

collapse all

New copied filter, returned as an insfilterErrorState object.

Version History

Introduced in R2020b