Main Content

copy

Create copy of insfilterAsync

Since R2020b

Description

example

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

Examples

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].

filterCopy.ReferenceLocation
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