how to create the number of equations from a correlation matrix by excluding the most correlated variables?
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Irina
el 21 de Sept. de 2025 a las 10:00
Comentada: Matt J
el 21 de Sept. de 2025 a las 12:22
I have a correlation matrix with several variables with different values. I would like to create all the pairs between the variables. In equestion i don't have to add the most correlated varaibles which are forbidden pairs (>0.5 and <-0.5)
0 comentarios
Respuesta aceptada
Matt J
el 21 de Sept. de 2025 a las 10:40
Editada: Matt J
el 21 de Sept. de 2025 a las 10:43
That sounds like a bad idea. Normally, in MATLAB, you wouldn't write your equations in scalar form. You would write a matrix equation in terms of the covariance matrix itself, so that the variables don't have to be individually enumerated.
To zero out certain elements of the matrix, you can just do, e.g.,
Matrix=2*rand(5)-1
Matrix(abs(Matrix)>0.5) = 0
2 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!