5 point differentation in Matlab

Hi,
Can anyone please guide me as to how to perform 5 point differentiation n Matlab, what does 5 point differentiation mean?
Thanks

7 件のコメント

Matt Fig
Matt Fig 2012 年 9 月 4 日
Matt Tearle
Matt Tearle 2012 年 9 月 4 日
5 points to Matt Fig!
Usman
Usman 2012 年 9 月 5 日
Brother, it did not help me out. i need exact equation or Matlab function for it. All google gave was some equation including some value "h" which i didnt understand. Would appreciate if you can help out instead of TAUNTING. Thank You
Matt Fig
Matt Fig 2012 年 9 月 5 日
Nobody meant to taunt you, Usman. The link I pasted above has the exact formula for 1-D and also explains what h is:
"In one dimension, if the spacing between points in the grid is h, then the five-point stencil of a point x in the grid is..."
So you just need to pick a small value for h (the distance between each of the 5 points on the curve). Once you start writing code, post it and I am certain you will get more help.
Jan
Jan 2012 年 9 月 5 日
@Usman: You asked for a term, Matt Fig showed you how to find its definition and the short period of time means a friendly suggestion to ask Google by your own the next time. If you even want a Matlab implementation, you can ask Google again for "Matlab 5 point differentation". If you are still not satisfied, ask a specific question.
Matt Tearle
Matt Tearle 2012 年 9 月 5 日
Usman, note the tags that have been added... See what the tutorial says about those...
You asked what 5-pt differentiation means, and Matt showed that a quick search will provide the answer. As to implementing it in MATLAB, maybe you should provide a starting point so that we can help you. Otherwise, it looks a bit like you expect random volunteers on the internet to do your work/homework for you.
Usman
Usman 2012 年 9 月 5 日
移動済み: Rik 2022 年 10 月 28 日
Thanks alot friends. but i certainly did google the term matlab implementation of 5 point difference and go no satisfactory result. that is why i came over here to help. if you think i want free volunteers to do my work for me, its better you dont reply back to the answer instead of passing senseless comments

サインインしてコメントする。

 採用された回答

Star Strider
Star Strider 2012 年 9 月 5 日
編集済み: Rik 2022 年 10 月 28 日

0 投票

Here are a couple links that explain it about as clearly as possible:
Numerical differentiation formulas (Gives an example using a 4-point first derivative)
and:
Note that if f(x) is the function you are differentiating (here the numerical data you have), h is the step size, that is:
h = x(k + 1) - x(k);
I have experimented with the algorithm for the 5-point first derivative. It is easy to implement, accurate, and reasonably precise.

3 件のコメント

Usman
Usman 2012 年 9 月 6 日
Thanks Bro
Rik
Rik 2022 年 10 月 28 日
I edited the links to point to the Wayback Machine from around the time of the post. The current version of the website seems to result in a browser warning and a 404.
Star Strider
Star Strider 2022 年 10 月 28 日
@Rik — Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

質問済み:

2012 年 9 月 4 日

コメント済み:

2022 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by