How can get a correlation plot?
Mostrar comentarios más antiguos
How do I create this kind of correlation plot using corrplot function. Suppose I have 8 variables with multiple valueses in an excel table sheet. Also how can i get the r2 values with *marks along the sides of r2 values showing the relationship is significant or not.

4 comentarios
Dyuman Joshi
el 25 de Sept. de 2023
You copied the image from the documentation only, I am suprised you did not look around.
Roja Eliza
el 26 de Sept. de 2023
the cyclist
el 26 de Sept. de 2023
Editada: the cyclist
el 26 de Sept. de 2023
Can you upload the data? (You can use the paper clip icon in the INSERT section of the toolbar.)
Either upload y itself in a MAT file, or upload your Excel file and the code that takes you from Excel to y. (Doing the latter is probably better, because maybe that is where something you are doing is going wrong.)
Roja Eliza
el 26 de Sept. de 2023
Respuestas (1)
the cyclist
el 25 de Sept. de 2023
0 votos
Here is one plan of action:
- Use the readtable function to load your data into MATLAB
- Use corrplot to get the plot
- Use the corr function to obtain the P values for the correlations
- Use text or annotation to add a symbol next to the significant values
1 comentario
Roja Eliza
el 26 de Sept. de 2023
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
