Plot only upper part(half) of the correlation matrix
조회 수: 17 (최근 30일)
이전 댓글 표시
I have the following correlation matrix, and would like to plot only the upper part as the lower part is just a mirror of the upper part. I also do not want to show the pink line (regression line) in the correlation matrix. How can I do that?
I used the following command:
corrplot('data') and get the following plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150151/image.jpeg)
댓글 수: 0
답변 (1개)
Mu Qiao
2016년 7월 19일
I may have a naive solution.
for i = 1:10
for j = 1:i
delete(subplot(10,10,(i-1)*12+j));
end
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!