| Description |
MCORR Multi-plot of all correlations between columns of a matrix
MCORR (X) plots correlations between all possible combinations of the columns of array X, in a single figure. If the first argument is the name of a file present in the current directory, mcorr reads it (including variable names in the first row) as X. Otherwise, MCORR assumes its first argument is the array to plot, in which case consecutive numbers will be used as variable names. If there is a second (numeric) argument, mcorr will plot only the columns indicated in the second argument.
MCORR does not plot self-correlations. It is unpractical to try to plot more than, say 8 variables, since each individual plot becomes very small.
OUTPUT= MCORR (X,'sig') calculates the Pearson correlation coefficient between
each pair of columns and, if the correlation is sgnificant at the 95%
level, points are plotted in red and the column numbers, Pearson coefficient and p-value are returned in the OUTPUT array. Requires Statistical Toolbox
EXAMPLES:
mcorr ('myfile')
mcorr ('myfile',[1:5])
mcorr (X,[3:6])
output= mcorr (X,'sig') |