MATLAB Help Center
Reset states for insEKF
insEKF
Since R2022b
reset(filter)
reset(filter) resets the State and StateCovariance properties of the insEKF object filter to their default values.
filter
State
StateCovariance
example
collapse all
Create an insEKF filter object.
filter = insEKF
filter = insEKF with properties: State: [13×1 double] StateCovariance: [13×13 double] AdditiveProcessNoise: [13×13 double] MotionModel: [1×1 insMotionOrientation] Sensors: {[1×1 insAccelerometer] [1×1 insGyroscope]} SensorNames: {'Accelerometer' 'Gyroscope'} ReferenceFrame: 'NED'
Show the default angular velocity state using the stateparts object function.
stateparts
stateparts(filter,"AngularVelocity")
ans = 1×3 0 0 0
Specify the angular velocity state as [0.1 0.1 0.1] rad/s using the stateparts object function.
stateparts(filter,"AngularVelocity",[0.1 0.1 0.1]) stateparts(filter,"AngularVelocity")
ans = 1×3 0.1000 0.1000 0.1000
Reset the filter and show the angular velocity state.
reset(filter) stateparts(filter,"AngularVelocity")
INS filter, specified as an insEKF object.
Introduced in R2022b
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office