Hello everyone. I have a long-standing problem, how to calculate the similarity between the two curves that have been fitted. Thank you for your enthusiastic answers.

1 回表示 (過去 30 日間)
corrcoef(f1,f2)
corr2(f1,f2)
  4 件のコメント
Steven Lord
Steven Lord 2021 年 1 月 23 日
What is your definition of "similarity"? Is x1 more similar to x2 or x3? Why?
x1 = 1:5
x1 = 1×5
1 2 3 4 5
x2 = x1 + 1
x2 = 1×5
2 3 4 5 6
x3 = [1:4 7]
x3 = 1×5
1 2 3 4 7
How about x4?
x4 = x1 + (-0.5:0.25:0.5)
x4 = 1×5
0.5000 1.7500 3.0000 4.2500 5.5000
What's most simlar to the black line in the plot below? The cyan with upward pointing triangles, the green with downward pointing triangles, or the magenta with rightward pointing triangles?
plot(x1, x1, 'k-+', x1, x2, 'c-^', x1, x3, 'g-v', x1, x4, 'm->')
Wesley
Wesley 2021 年 1 月 24 日
Thank you for your enthusiastic answer.
My defination:
1. Their abscissas have the same starting point and ending point;
2. The slopes of the curves are roughly equal.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by