필터 지우기
필터 지우기

Built-in function diff - methodology

조회 수: 3 (최근 30일)
Dessislava Koleva
Dessislava Koleva 2012년 4월 3일
Hi,
What methodology is used in "diff"? Does it take forward or central differences, and what is the step? How can I check the source code?
Thanks in advance!

채택된 답변

Jonathan Sullivan
Jonathan Sullivan 2012년 4월 3일
help diff
doc diff

추가 답변 (2개)

Jan
Jan 2012년 4월 3일
You cannot check the code of DIFF, because it is a built-in function. As Jonathan has said already, reading the doc will reveal the internal method. It is the difference of subsequent elements.

Dessislava Koleva
Dessislava Koleva 2012년 4월 3일
Thank you for the fast responses, I guess I'll need something else for my evaluation then. Have a good day!
  댓글 수: 2
Jan
Jan 2012년 4월 3일
I guess you are looking for GRADIENT.
Dessislava Koleva
Dessislava Koleva 2012년 4월 3일
I'll check it out, yes. I was interested in the order of the error, as I'm getting slightly different numbers from those obtained by a closed form solution. (slightly = 0.002, which is a lot, in my opinion). However, thanks for the answer!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by