function plotfMRIDesignCorrelations(DM,DesignMatrixLabels,Eventname)
cLabels=DesignMatrixLabels;
DMCorrs=DM;
    figure('color',[1 1 1],'name',['Mean Correlation for event ' Eventname]);
    subplot(5,6,1,'YTICKlabel',cLabels,'YTick',1:length(cLabels),'XTick',1:length(cLabels));
    hold on;imagesc(mean(DMCorrs(:,:,1),3),[-1 1]);title('Subject: 1')
    colorbar
    for isub=2:size(DMCorrs,3)
        subplot(5,6,isub);hold on;imagesc(DMCorrs(:,:,isub),[-1 1]);title(['Subject: ' num2str(isub)])
        colorbar
    end
    
    figure('color',[1 1 1],'name',['All mean coors for event' Eventname]);imagesc(mean(DMCorrs,3),[-1 1])
    set(gca,'XTickLabel',cLabels,'XTick',1:length(cLabels))
    set(gca,'YTickLabel',cLabels,'YTick',1:length(cLabels))
    colorbar   

