Filter löschen
Filter löschen

The output from MeasurementFcn must have the same size and data type as the given measurement.

2 Ansichten (letzte 30 Tage)
I have Simulink model for feed axis driving system with an Intermediary Extended Kalman Filter (EKF) block, i have used mymeasurementfunc and myStateTransitionFcn as follows
x_hat = myStateTransitionFcn(x,u)
Ts = 0.001;
x_hat = x+[x(2); x(2)*((-K2-c)/P)+((K1*u)/P)]*Ts; %state equation
end
function y =mymeasurementfunc(x)
y = x(1);
end
while executing this i am getting error as The output from MeasurementFcn must have the same size and data type as the given measurement.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by