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)
Sean
Sean le 9 Mar 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.

Réponses (1)

Abraham Boayue
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.
  1 commentaire
Sean
Sean le 9 Mar 2018
Modifié(e) : Sean le 9 Mar 2018
Could it be an issue that I run the codes from the cloud, and not directly from a map in my documents? I do so such that I can edit on multiple computers, since I am not always working from one place.

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by