Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to differentiate one list with respect to another?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Massimo Zanetti
2016년 10월 26일
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
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!