I am getting an error in function definition.

Attempt to execute SCRIPT gen_Kalman_coefs as a function:
Error in gen_Kalman_coefs (line 29)
[Kph, Kf] = gen_Kalman_coefs (R, Q, S0, F, G, H, N);

 Accepted Answer

gen_Kalman_coefs needs to have the proper function syntax. E.g.,
function [Kph, Kf] = gen_Kalman_coefs (R, Q, S0, F, G, H, N)
% put code here to assign stuff to Kph and Kf
end

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!