I am testing different conditions and I want to plot conditions I am comparing in a matrix form like shown in the figure. Any ideas how I can do that? Any help is greatly appreciated.
So far I've only managed to put it in two lines, like in the second picture, using code:
% example:
x = 1:1:10;y = rand(10,1);txt = {'1 2', '1 3', '1 4', '1 5', '2 3', '2 4', '2 5', '3 4', '3 5','4 5'};labels = cellfun(@(x) strrep(x,' ','\newline'),txt,'UniformOutput',false);figure()plot(x,y,'.','MarkerSize',50)xticks(x)xticklabels(labels)xlim([0.5 10.5])
Best Answer