Merging two irregular curves ??

1 次查看(过去 30 天)
Kang Min Kim
Kang Min Kim 2019-12-17
回答: ME 2019-12-17
선2.png
Can you merge those two irregular curves?
Is there a mathematical or another way?
What code should be used in Matlab?
My english is not good sorry

采纳的回答

ME
ME 2019-12-17
When you say merge, I'm assuming you simply want to add together the value of the two curves at each point along them. If so then you can define the two curves as A and B and then just do:
C = A+B;
where C is then your merged curve.
I have assumed here that both of the curves are represented by two arrays of the same length. If not then you might need to use interp to get them to the same size before adding together.
If you wanted to do something more fancy then I think we'll need some more information on what exactly you want to do.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Curve Fitting Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by