code for finding band depth of a parabola which is going from three points (7.8 0.96), (8.25 0.99) and (8.55 0.94)?

1 次查看(过去 30 天)
how can I write code for finding band depth of a parabola which is going from three points (7.8 0.96), (8.25 0.99) and (8.55 0.94)?

回答(1 个)

Image Analyst
Image Analyst 2013-4-1
You can get the coefficients of the formula using polyfit(). It's so really really easy that I shouldn't have to even give you the code. Just look at the help for polyfit(). After that just use whatever formula you have for "band depth". By the way, why did you tag this "image processing"?
  3 个评论
Image Analyst
Image Analyst 2013-4-2
I'm not sure what all those terms mean. If you have a parabola, the equation is y = coeffs(1)*x.^2 + coeffs(2)*x + coeffs(3). You can get coeffs from
coeffs = polyfit(xArray, yArray, 2);
So what is D, Rb, and Rc in terms of the coefficients?
RS
RS 2013-4-3
If simply I want to compute area of parabola form three points (7.8 0.96), (8.25 0.99) and (8.55 0.94)? How can I compute?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by