Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Why do I receive this error in maximising the log likelihood criterion?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to retrieve parameter values by means of maximum likelihood, however the code has been giving this unforeseen error. I have added some snippets. Thanks for the help, and please let me know if I need to add more code.
1 commentaire
Réponses (1)
Abraham Boayue
le 9 Mar 2018
You need to check you your likelihood function, the input variables aren't defined properly. You can fix it like here : function [llik] = llik_fun_KALMAN_SV(vF,vV, iSize) Next, you can now call this function using 3 inputs. I'm not sure if I understand what you are trying to achieve with your code but these are just two weaknesses that I have seen so far. I advise that, whenever you get an error like the one you provided,try to edit that part of the code the error is coming from. Matlab always gives a clue to an error. You can even check a built in function that you used to make further investigations if you think the error is not from your own written code. 1. The first error might have occurred because your function like_fun_... is not seen by your SV_model_test.m file or doesn't have the name that you saved it with. I has to be in the same folder that your are working in. 2. The second error is from a built in function called femincon, one often gets errors like these if they failed to satisfy certain conditions as imposed by the function, you can check this by clicking the number in parentheses. Try to give more detals of what you are trying to achieve. Give examples of what you expect to see as a result of your program.
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!