% Example program for making Taylor diagrams,
% illustrating some interesting cases.

clear
data(:,1)=[1 2 3]';   % Data
models(:,1)=[2 3 4]'; % Model #1 - biased
models(:,2)=[1 5 3]'; % Model #2 - low correlation, high variance

[corr,nstd]=taylor(data,models);

clear
data(:,1)=[1 2 3 4]';   % Data
models(:,1)=[1 2 3 4]'; % Model #1 - perfect
models(:,2)=[3 3 2 1]'; % Model #2 - anticorrelated, low variance
models(:,3)=[2 2 2 2]'; % Model #3 - no variance (e.g. "persistence" model)
models(:,4)=[2 4 6 8]'; % Model #4 - perfect correlation, high variance

[corr,nstd]=taylor(data,models);

