Shall I get a fitting function by Matlab according to two matrix

1 visualización (últimos 30 días)
vx2008
vx2008 el 10 de Dic. de 2015
Editada: Walter Roberson el 10 de Dic. de 2015
Now I have two mat 'X' and 'Y';
And I can get correlation of 'X' and 'Y' by function [R,P]=corrcoef(X,Y); I can do it as below:
X=[1 2 3 4 5 6];
Y=[23 45 56 76 87 98];
[R,P]=corrcoef(X,Y)
R =
1.0000 0.9927
0.9927 1.0000
P =
1.0000 0.0001
0.0001 1.0000
Then I know the correlation of 'X' and 'Y' is 0.9927 and is very high;
My question is that How I get the function Y=f(X) with correlation of 0.9927?

Respuestas (0)

Categorías

Más información sobre Descriptive Statistics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by