Correlation coefficient on qq plot
Afficher commentaires plus anciens
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 commentaires
Mehmed Saad
le 6 Juil 2020
you mean like a legend?

Hatim Altarteer
le 6 Juil 2020
Mehmed Saad
le 6 Juil 2020
legend is the command
Hatim Altarteer
le 6 Juil 2020
Réponses (1)
Jemima Pulipati
le 9 Juil 2020
Modifié(e) : Jemima Pulipati
le 9 Juil 2020
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.

Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!