Hi, I'm trying to use the fsolve function in Matlab to solve a system of equations for : where is a nonlinear function of and is a function of .

The first problem is that and I'm not sure how to include summation into the inline() function in Matlab.

The second problem is that I will be doing lots of these estimation at once. Specifically, I have a huge vector of , , , but I have to do the fsolve piece by piece. Therefore, the range of the summation would be a condition based on some other characteristics from the data. How would I include the condition part?

Lastly, is there a way to define function so I can just type in fsolve? appears several times in the matrix, which if I type it out could easily be stretched really long.

Thanks!