Measurement Function for Extended Kalman Filter receives -2 input. Why?

7 ビュー (過去 30 日間)
Suraj Parasuram
Suraj Parasuram 2024 年 1 月 9 日
回答済み: Venkat Siddarth Reddy 2024 年 1 月 18 日
=== Simulation (Elapsed: 2 sec) ===
Error:Error in 'OD/ GPS OD model/Extended Kalman Filter': Failed to evaluate mask initialization commands.
Caused by:
Function Measurement expects 1 inputs, or 2 if it has an optional extra input. Instead it receives -2.
Not sure what I am doing wrong here for such an error to occur. Any insights here would be appreciated.

回答 (1 件)

Venkat Siddarth Reddy
Venkat Siddarth Reddy 2024 年 1 月 18 日
Hi Suraj,
I understand that you are getting the above error when using measurement function for extended kalman filter.
It is difficult to asses the error without the Simulink model.
However from the error message it seems like there is an issue with the arguments which are getting passed to the "measurement" function.
"Measurement function" takes two inputs "sensor" and "filter".
To learn more about the measurement function,please refer to the documentation:
I hope this helps!

カテゴリ

Help Center および File ExchangeState-Space Control Design and Estimation についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by