How to implement otimization on function that depends on other functions
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!