From 1bc8cef61725d77d3249f010a7259aac4499bfd7 Mon Sep 17 00:00:00 2001 From: Bernhard <90285552+4gwe@users.noreply.github.com> Date: Tue, 20 May 2025 15:49:32 +0200 Subject: [PATCH 1/2] commant change --- src/pspm_rev_dcm.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pspm_rev_dcm.m b/src/pspm_rev_dcm.m index 0c51d19f..70f1db9c 100644 --- a/src/pspm_rev_dcm.m +++ b/src/pspm_rev_dcm.m @@ -81,8 +81,8 @@ y = dcm.sn{sn}.y(:); yhat = dcm.sn{sn}.yhat(:); f.h = figure('Position', [50 50 750 750], 'PaperPositionMode', 'auto', 'PaperOrientation', 'Portrait', 'InvertHardCopy', 'off', 'Color', 'w', 'Name', 'Session summary'); - foo = ceil(sqrt(trlno+1)); % +1 for axis label plot - f.r = foo; f.c = ceil((trlno+1)/foo); % +1 for axis label plot + foo = ceil(sqrt(trlno+1)); % +1 for the dummy plot + f.r = foo; f.c = ceil((trlno+1)/foo); % +1 for the dummy plot sr = 10; for n = 1:trlno if n < trlno From 5e799dd4d04475d896d4a47a89a66c8870d67f13 Mon Sep 17 00:00:00 2001 From: 4gwe Date: Sun, 1 Feb 2026 21:06:53 +0100 Subject: [PATCH 2/2] small changes --- src/pspm_rev_dcm.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pspm_rev_dcm.m b/src/pspm_rev_dcm.m index 70f1db9c..b7757762 100644 --- a/src/pspm_rev_dcm.m +++ b/src/pspm_rev_dcm.m @@ -127,10 +127,10 @@ xt(x + 1, :) = f_SCR(xt(x, :), Theta, ut(:, x), in); end figure; plot(xt(:, 1)); - set(gca, 'YAxisLocation','left', 'YTickMode','auto', 'XTick', 0:50:300, 'XTickLabel', 0:5:30, 'FontWeight', 'Bold', 'FontSize', 12); + set(gca, 'YTickMode', 'auto', 'XTick', 0:50:300, 'XTickLabel', 0:5:30,'XLim', [0 300], 'FontWeight', 'Bold', 'FontSize', 12); set(get(gca, 'Title'), 'String', 'Skin conductance response function', 'FontWeight', 'Bold', 'FontSize', 16); - set(get(gca,'XLabel'), 'String', 'Time (seconds)', 'FontWeight','Bold', 'FontSize',12); - set(get(gca,'YLabel'), 'String', 'SCR amplitude (data units)', 'FontWeight','Bold', 'FontSize',12); + set(get(gca, 'XLabel'), 'String', 'Time (s)', 'FontWeight', 'Bold', 'FontSize', 12) + set(get(gca, 'YLabel'), 'String', 'Skin conductance (\muS)', 'FontWeight', 'Bold','FontSize', 12); case 'names' fprintf('Trial names for %s:\n---------------------------------------\n', dcm.dcmname); for n=1:numel(dcm.trlnames)