
How I find the correlation coefficient between two non-identical matrices?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
A=[1,2,3,3,4,5,6,7,8,9
1,2,3,6,5,4,8,9,8,7];
B=[1,3,4,8,10,15,18,19,20,25];
C=corr2(A,B)
-----------------------------------------------------
Error using corr2>ParseInputs (line 39)
A and B must be the same size.
Error in corr2 (line 21)
[a,b] = ParseInputs(varargin{:});
Error in Untitled (line 4)
C=corr2(A,B)
0 comentarios
Respuestas (1)
Totanly
el 8 de En. de 2019
First of all, you have to know about the physical significance of correlation. that is if y=function(x) like equation ..means for each value of x there should be a value of y. but sometimes practically we get more values of y corresponding to each value of x. in that case number of y values should be identified.
for example
if x=distance and y=number of car covered the distance with velocities ....given in the table

in this case you can take mean (or mediun or other) of the velocities for each distance and then calculate correlation.
0 comentarios
Ver también
Categorías
Más información sobre Polynomials en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!