Main Content


Create copy of insfilterAsync

Since R2020b



newFilter = copy(filter) returns a copy of the insfilterAsync, filter, that has exactly the same property values.


collapse all

Create an insfilterAsync object.

filter = insfilterAsync;

Create a copy of the filter.

filterCopy = copy(filter);

Change the reference location to [0 0 1].

filter.ReferenceLocation = [0 0 1];

Verify the reference location of the copied filter has the default value, [0 0 0].

ans = 1×3

     0     0     0

Input Arguments

collapse all

Filter to be copied, specified as an insfilterAsync object.

Output Arguments

collapse all

New copied filter, returned as an insfilterAsync object.

Extended Capabilities

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

Version History

Introduced in R2020b