Conditional values and equations
Mostrar comentarios más antiguos
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 comentario
darova
el 12 de Oct. de 2019
DId you try for loop?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Nonlinear Optimization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!