Conditional values and equations
古いコメントを表示
Hi guys, I need to ask you some tips.
Let's say we have a situation like the following:
alpha = [];
gm = [];
gs = [];
s_1 = 0.3;
s_T = 0.7;
I need to find the values of alpha, gm and gs such that the initial and final values of s (a vector) are the ones I've writed.
And what if alpha, gm and gs are called inside an equation? Like:
b(t) = (gs+h(t-1))*b(t-1);
a(t) = (gm+v(t-1))*a(t-1);
s = (alpha*a.^z+(1-alpha)*b.^z).^(1/z-1).*alpha.*a.^(z-1);
I don't know if I explained myself well.
1 件のコメント
darova
2019 年 10 月 12 日
DId you try for loop?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Nonlinear Optimization についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!