Borrar filtros
Borrar filtros

Differentiation of a vector wrt a vetor

2 visualizaciones (últimos 30 días)
Pavan Kumar
Pavan Kumar el 3 de Mzo. de 2015
Comentada: Pavan Kumar el 3 de Mzo. de 2015
Hiii Friends,
Suppose i have two vectors
Ls = (1.2:0.0001:3.0).*1e-6;
delk = (x:y:z) %some vector
I would like to differentiate d(Ls)/d(delk).
How do i do it?
Advance thanks for the advice.
Pavan

Respuesta aceptada

Giorgos Papakonstantinou
Giorgos Papakonstantinou el 3 de Mzo. de 2015
Assuming Ls and delk are of the same size:
diff(Ls)./diff(delk)
  5 comentarios
Andrew Newell
Andrew Newell el 3 de Mzo. de 2015
Ls and delk should have the same length.
Pavan Kumar
Pavan Kumar el 3 de Mzo. de 2015
Thank you Andrew and Giorgos.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by