How can I fit a curve on two sets of data simultaneously?

1 回表示 (過去 30 日間)
Mitra Taghizadeh
Mitra Taghizadeh 2022 年 4 月 15 日
コメント済み: Mitra Taghizadeh 2022 年 4 月 16 日
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
Torsten 2022 年 4 月 15 日
What is the equation of the function to which you want to fit both sinusoidal curves ?
Mitra Taghizadeh
Mitra Taghizadeh 2022 年 4 月 16 日
F1(t)=a11*sin(b11(t)+c11)+a21*sin(b21(t)+c21)+a31*sin(b31(t)+c31)
F2(t)=a12*sin(b12(t)+c12)+a22*sin(b22(t)+c22)+a32*sin(b32(t)+c32)
where: b11=b12
b21=b22
b31=b32

サインインしてコメントする。

回答 (1 件)

Walter Roberson
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 ExchangeFit Postprocessing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by