how to plot a correlation matrix between two variables as a heatmap in matlab?
Show older comments
I have two variables which vary with each run of my code. I have to calculate the correlation matrix between these two variables. The matrix axes will be like variable X(first run),variable Y(first run),Variable X(second run),variable Y (second run)......I need to plot this correlation matrix as a heat map?
please help me
Accepted Answer
More Answers (1)
Niyati Chokshi
on 27 May 2022
Edited: Niyati Chokshi
on 27 May 2022
0 votes
I have four variables- 3 of them are caluating the fourth one, thus mismatch of the lengths/dimension. . How do I use imagesc and corr for that?
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!