![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327599/image.png)
Correlation coefficient on qq plot
조회 수: 10 (최근 30일)
이전 댓글 표시
How can i add the correlation coefficient on the qq plot at the top left?
i used corrcoef function to calculate the correlation coefficient between two arrays
댓글 수: 4
답변 (1개)
Jemima Pulipati
2020년 7월 9일
편집: Jemima Pulipati
2020년 7월 9일
From my understanding, you want to customize the plot such that data other than the legend related to plot should be added to the top left of the plot.
The following example explains how to use text
% generating a plot and adding a legend
v = 1:5
plot(v)
lgd = legend('a');
num = 123.45
%placing a text at a specific data point in the figure
txt = "Sample Text = " + num
text(1.5, 4.5, txt)
here (1.5, 4.5) specifies the position where the text has to be placed.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/329357/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/329357/image.jpeg)
댓글 수: 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!