ShadedCorrelationTable produces a correlation table for a set of variables, enhanced graphically with shading according to correlation values.
Upper or lower ranges of correlation values may be highlighted through the interface controls. Two methods are provided to do this: a decay function that softens shading of values of less interest, or, shading according to a discrete threshold.
Pearson's linear correlation coefficient is used.
Jaspar Cahill (2020). Shaded Correlation Table (https://www.mathworks.com/matlabcentral/fileexchange/30151-shaded-correlation-table), MATLAB Central File Exchange. Retrieved .
Doesn't work on new versions of matlab
This function seems great. Its not working in Matlab 2016a. It crashes on line 276, because fpos is an empty array:
set(obj.topPanel, 'position', [0 bottomPanelHeight fpos(3) fpos(4)-bottomPanelHeight]);
Seems to work - except that it converts all correlations to positive correlations. I tried to convert it to get the negative values to display as well but didn't manage to.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!