How can I fit a curve on two sets of data simultaneously?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi there,
I have two different curves (sinusoidal functions with the same frequencies) in one period of time. I want to find the best curve which can represent both of the reference curves. I want to know is there any method in MATLAB that using it I can fit a curve on that two sets of data simultaneously?
Thank you,
댓글 수: 2
Torsten
2022년 4월 15일
What is the equation of the function to which you want to fit both sinusoidal curves ?
답변 (1개)
Walter Roberson
2022년 4월 15일
Append the data together.
joint_x = [x1; x2];
joint_y = [y1; y2];
cftool(joint_x, joint_y)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!