curve line like Excel

조회 수: 2 (최근 30일)
Touts Touts
Touts Touts 2018년 8월 12일
댓글: Unai San Miguel 2019년 7월 9일
please how i can get like the excel curve
x = [-0.001997568 0.002377296 0.002564918 -0.0021569 -0.001997568]
y = [-0.001082305 -0.007057942 0.002240446 0.008950567 -0.001082305]
  댓글 수: 4
dpb
dpb 2018년 8월 12일
Don't know what you expected but it does what it was written to do...draws a line with some unordered points, rearranges the points in x-ascending order and plots, then smooths the graph with a spline.
Looks like it was just intended as a simple demonstration; wasn't purporting to solve any great problem.
It would take building a smoothing bounding surface in 2D through the polygon points to build a line such as that in the example posted; as noted, afaik there's not a trivial function prepackaged in ML to do such.
You might try to search on FileExchange and see if somebody has done something similar...

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품


릴리스

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by