How to implement otimization on function that depends on other functions
1 view (last 30 days)
Show older comments
I am trying to implement this equations, but cant figure out how, im thinking of using anonymous functions and fminsearch() to get the estimation of my paramater (equation 30), but not sure how i would actually do it.
As you can see, to implement equation 30 I need all of the other three eqs.
"p" is the only unkown variable in my program.
Im not sure how to implement equation 24 and 30, due to those sums and this " nesting of equations". Any ideas?
This is the code that i have right now ( i have a lot more code, relating to other coefficents present in the above mentioned equations, they are all stored in matrixes, i index refers to k):
bdpfunH = ...
@(p_,n,i) eta * sqrt(G_R)* f_n(n,2) / (4*pi*norm(p_- pk(i))) * exp(-j*2*pi*f_n(n,1)/3e8*norm(p_- pk(i)));
gdpfunH = ...
@(n,i) xi_k * (sqrt(G_T*G_R*TX_pwr_sub) * f_n(n,2))/(4*pi*norm(ptx-pk(i))) * exp(-j*2*pi*f_n(n,1)/3e8*normtxk(ptx-pk(i)) + j*2*pi*f_n(n,1)*t_0 + j*phi_0);
hdpfunH = ...
@(gdpfunH,bdpfunH) gdpfunH * bdpfunH;
phi_t = ...
@(hdpfunH)
p_est = ...
@(phi_t)
7 Comments
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!