Skip to content

Commit

Permalink
contrasts: if no output, print contrasts
Browse files Browse the repository at this point in the history
  • Loading branch information
allefeld committed Jun 29, 2023
1 parent ca2b75f commit 8c2b115
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrasts.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
cName{ci} = l(2:end);
end

% if no output, print contrasts
if nargout == 0
for ci = 1 : nc
fprintf('%s:\n', cName{ci})
disp(cMatrix{ci})
fprintf('\n')
end
clear cMatrix cName
end


% This program is free software: you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the
Expand Down

0 comments on commit 8c2b115

Please sign in to comment.