code
조회 수: 1 (최근 30일)
이전 댓글 표시
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,
댓글 수: 0
답변 (1개)
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?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!