Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to differentiate one list with respect to another?

1 Ansicht (letzte 30 Tage)
Bartlomiej Winter
Bartlomiej Winter am 26 Okt. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello all,
Thanks for looking. I was wondering how to differentiate one list with respect to another. For example is a=[1,2,3,4,5] and b=[10,11,12,13,14], is there a way I can do da/db?
Thank you in advance for your help.
Bartek

Antworten (1)

Massimo Zanetti
Massimo Zanetti am 26 Okt. 2016
Explain better what do you mean by "differentiate one list w.r.t. one another".
If for
a=[1,2,3,4,5]
b=[10,11,12,13,14]
you aim at getting
dff= [1-10,2-11,3-12,4-13,5-14]
then just do elementwise subtraction
dff=a-b
  1 Kommentar
Bartlomiej Winter
Bartlomiej Winter am 26 Okt. 2016
Thank you very much for this I'll give it a go.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by