Effacer les filtres
Effacer les filtres

Differentiation of a vector wrt a vetor

2 vues (au cours des 30 derniers jours)
Pavan Kumar
Pavan Kumar le 3 Mar 2015
Commenté : Pavan Kumar le 3 Mar 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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by