Matlab - SOS - Help

Agar_dasrulda.m (3.0 KB)

First, sorry for you bothering but I do not know where to ask. I know It is a Dynare forum, but still I have to ask questions about MatLab. I have written code and I think it should be working but it is stuck in the loop and I am not sure how to fix this problem. I have tried to do iterations but it won’t work. It gives me some silly figure. If anyone can help me I would really appreciate it. Sorry again for everyone bothering you with question related to matlab

You did not even tell us what the file is supposed to do. For us, the file is just a bunch of characters in a file without meaning.

aba.m (3.3 KB)
sorry, I am attaching again.
Using shooting algortihm, I am trying to find that particular initial consumption that gets me to a steady state and then plot interest variables. However, I am not sure if my loop for initial consumption works or not. I think there is something wrong and it does not change the value of c0 when it is supposed to do.