Added source Matlab code for reference

This commit is contained in:
Waldir Leoncio 2019-12-16 16:47:21 +01:00
parent b8af977117
commit b5d99903d2
186 changed files with 61405 additions and 1 deletions

View file

@ -0,0 +1,16 @@
function showColors(n_col)
if n_col>36
error('Maximum number of colors 36');
end
figure('NumberTitle','off','Name','Colors');
set(gca, 'Xlim', [-.5 , n_col+.5], 'YLim', [0,1], ...
'XTick', [], 'XTickLabel', [], 'YTick', [], 'YTickLabel', []);
varit = giveColors(n_col);
for k=1:length(varit)
h0=patch([k-1 k k k-1], [0 0 1 1], varit(k,:));
set(h0,'EdgeColor','none');
end