code

1 次查看(过去 30 天)
abdulhadi khalifa
Hi!
I want to find the values for the slopes of the tangent in
every point of that curve. Does anybody know how to do it in Matlab? If you have like this data Dx&Dy how you find the slope DY/DX at every point
Hi, How, I can create a code in matlab to calculate the slope at every point in the curve if I have experemnt data
Sav{0.47 0.532 0.588 0.662 0.736 0.772}
Wi{0.254 0.539 1.071 3.349 12.72 26.54}
The relation between Sav in Y direction and Wi in X direction is a curve so I want to calculate the slope at every point.
I want to calculate Fo which is equal to
Fo= d Sav / d Wi
The answer in the paper for Fo are { 0.553 0.171 0.0875 0.0234 0.00536 0.00265}
I know that mathematically the slope of the tangent to a curve in a point is equal to the value of the first derivative in that point but that would make the things really complicated in the program.
Thanks,

回答(1 个)

Matt Kindig
Matt Kindig 2012-4-2
Looking at your data, and reading over your other posts about this, perhaps the problem is that the spacing between points is too large to approximate the function well. That is, the line formed between adjacent points might be a poor approximation to the tangent of the actual curve.
Plotting the points, the data appears to be an exponential function. Perhaps fitting an equation to the points would be helpful?

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by