The output from MeasurementFcn must have the same size and data type as the given measurement.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!