Contenido principal

reset

R2026b

Reset state parts of insCF

Since R2026a

    Description

    reset(filter) resets the state parts of the insCF filter to their default values.

    example

    Examples

    collapse all

    Create an insCF filter object. Get the default orientation value by using the stateparts object function.

    filter = insCF;
    stateparts(filter,"Orientation")
    ans = 1×4
    
         1     0     0     0
    
    

    Specify a new orientation value. Verify the updated value of the orientation part of the filter's state.

    stateparts(filter,"Orientation",[0.005782462930365 -0.135766868853727 -0.057153855377551 -0.989073989780136]);
    stateparts(filter,"Orientation")
    ans = 1×4
    
        0.0058   -0.1358   -0.0572   -0.9891
    
    

    Reset the filter, and check that the orientation part of the filter's state has returned to its default value.

    reset(filter)
    stateparts(filter,"Orientation")
    ans = 1×4
    
         1     0     0     0
    
    

    Input Arguments

    collapse all

    Complementary filter to reset, specified as an insCF object.

    Extended Capabilities

    expand all

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

    GPU Code Generation
    Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

    Version History

    Introduced in R2026a

    See Also

    Objects

    Functions