Differentiation of a vector wrt a vetor

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

 采纳的回答

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

5 个评论

Hii Friend, sorry if my question is wrongly explained...
I would like to differentiate Ls wrt delk. It is not the ratio.
My answer does not give the ratio. It gives:
f(x+Δx) - f(x)
----------------
Δx
Wasn't this your question?
Thank you..That was wanted i wanted. But when i try plotting i get error 'Vectors must be of same length'
Ls and delk should have the same length.
Thank you Andrew and Giorgos.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by