y(t)= a*t*exp(-a*t); z=summatio​n(A(i)*y(t​-T(i)).sum​mation from i=1 to J. i need to partially differentiate z wrt A() and T()

1 visualización (últimos 30 días)
for the above equation i need to partially differentiate z wrt A() and T() . how do i include the summation in matlab code.
Thank you in advance
  3 comentarios
KOMALA PAWAR
KOMALA PAWAR el 26 de Mzo. de 2016
y(t)= a*t*exp(-a*t); z=summation(A(i)*y(t-T(i)).summation from i=1 to J. i need to partially differentiate z wrt A() and T().

Iniciar sesión para comentar.

Respuestas (1)

Ced
Ced el 26 de Mzo. de 2016
And you want to do this symbolically? Looks to me that this would be a possibility:
1. create a variable for each summation index. You can do this e.g. using the syntax
a_vec = sym('a',1:J);
2. define the term z = sum(....)
3. differentiate w.r.t each variable, either in a loop, or in vector form using the jacobian function. See here:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by