Conditional values and equations
Show older comments
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 Comment
darova
on 12 Oct 2019
DId you try for loop?
Accepted Answer
More Answers (0)
Categories
Find more on Nonlinear Optimization in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!