Merging two irregular curves ??
조회 수: 1 (최근 30일)
이전 댓글 표시
![선2.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254778/%EC%84%A02.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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!