In this model:
where all the variables are of dymension TX1, I need to find all the (T) values of gamma that put the equation to zero.
I tryed with the following code, but the program returns me all NAN, how can I fix the code to get it?
fnc = @(gamma,C,S) 1./(1+gamma).*(C(i)-(S(i)*gamma)) - M(i);
rn = @(gamma) norm(M - fnc(gamma,C,S));
gamma0 = ;
[gamma, ResNorm] = fzero(rn, gamma0);