how to plot correlation matrix shown by colored circles?
조회 수: 6 (최근 30일)
이전 댓글 표시
How Can I plot this kind of correlation matrix? this figure was created using R
댓글 수: 0
채택된 답변
Chunru
2022년 5월 30일
% Generate R
n= 6;
r = magic(n);
r = triu(r);
r(r==0) = NaN
% Plotting
[xx, yy] = meshgrid(1:n, 1:n);
scatter(xx, yy, r*20, 'filled');
set(gca, 'YDir', 'reverse');
colorbar
axis off
% use text to annotate
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!