The output from MeasurementFcn must have the same size and data type as the given measurement.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!