How to fit/scale a big data set into a smaller one?

3 次查看(过去 30 天)
Hi,
my problem is pretty similiar to this one:
except that I dont have a repeating signal.
My problems is rather looking like this one:
2Datasets.png
DataSet 1 is the blue plot, defined by 65 X and Y values. DataSet 2 is the yellow one, defined by 3 values. Now my goal is to move, turn, scale etc. the blue data points in a way, so they fit the yellow points in the best possible way. Only limitations are a intersection with zero and the ratio between the blue data must stay equal. I tried several approaches with least square error or lsqcurvefit but the problem is always the difference in the number of values between the 2 data sets. A 9th degree polynomial fit of the blue data comes pretty close to what it looks like.
I also thought of the optimization toolbox, but I am failing to use it in the right way.
Cheers!
Paul
  1 个评论
dpb
dpb 2019-6-23
No idea what you intend as a result. What does the phrase "limitations are a intersection with zero and the ratio between the blue data must stay equal" possibly mean?
Only thing I can suggest would be to draw onto the graph another set of points that represent what you think the ideal answer would look like...maybe that could let somebody visualize the request.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by