How do I correlate two tables with a different number of rows?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Madeline Daveney
el 16 de Jun. de 2020
Respondida: Divya Gaddipati
el 25 de Jun. de 2020
Hi,
I have two tables that I am trying to correlate, but they have a different amount of rows, so matlab is not allowing me to correlate them.
Is there a way to curcumvent different row length in this situation?
Regards,
M
2 comentarios
Madeline Daveney
el 17 de Jun. de 2020
Editada: Madeline Daveney
el 17 de Jun. de 2020
Respuesta aceptada
Divya Gaddipati
el 25 de Jun. de 2020
You could also convert the table to a matrix and use interpolation on the smaller matrix to resize it to the larger matrix's size. Then use corrcoef or corr2 to calculate the correlation.
You could also refer to a similar questions already asked:
For more information on corr2 and corrcoef, refer to the following links:
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!