How to statistically determine how much two curves are different?

조회 수: 33 (최근 30일)
Tay
Tay 2021년 2월 4일
댓글: Amanda Botelho Amaral 2021년 12월 17일
Hi,
I have two curves with diferent X and Y but the shape are similar. I would like to determin in percentagem or some number how they look like.
I tried Kolmogorov-Smirnov test in matlab but the problem is that my curve has different dimensions as well. One is 1x1001 and the other is 1x1000000.
Attached are the two data if it is helpfull.
Thanks for any help.
Regards,
Taynara
  댓글 수: 10
Amanda Botelho Amaral
Amanda Botelho Amaral 2021년 12월 17일
I have a similar problem. How did you solve it?

댓글을 달려면 로그인하십시오.

답변 (1개)

darova
darova 2021년 2월 4일
편집: darova 2021년 2월 4일
Use interp1 or spline to interpolate data. Here is an example
clc,clear
x1 = 0:0.2:4; % fine mesh
x2 = 0:0.5:4; % coarse mesh
y1 = sin(x1); % fine data
y2 = sin(0.9*x2); % coarse data
y22 = interp1(x2,y2,x1); % create better data (interpolation)
plot(x1,y1,'.-r')
hold on
plot(x2,y2,'.-b')
plot(x1,y22)
plot([x1; x1],[y1; y22],'-b')
hold off
  댓글 수: 2
Tay
Tay 2021년 2월 4일
Thank, darova
I will try this one
darova
darova 2021년 2월 4일
Please try and let know how it went

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by