MATLAB: Differentiation of a vector wrt a vetor

differentiationvectors

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

Best Answer

Assuming Ls and delk are of the same size:
diff(Ls)./diff(delk)