# HG changeset patch # User Carnë Draug # Date 1435937611 -3600 # Node ID ababbe1030480944f70941144f00315ff9ec1cd1 # Parent 26fc9bbb8762ed8ce719c3561c196bd2c596d5db gallery: allow N to be a 2 element vectors for cycol matrices. diff -r 26fc9bbb8762 -r ababbe103048 scripts/special-matrix/gallery.m --- a/scripts/special-matrix/gallery.m Fri Jul 03 16:20:56 2015 +0100 +++ b/scripts/special-matrix/gallery.m Fri Jul 03 16:33:31 2015 +0100 @@ -911,7 +911,7 @@ endif endfunction -function A = cycol (n, k = max (round (n/4), 1)) +function A = cycol (n, k = max (round (n(end)/4), 1)) ## CYCOL Matrix whose columns repeat cyclically. ## A = CYCOL([M N], K) is an M-by-N matrix of the form A = B(1:M,1:N) ## where B = [C C C...] and C = RANDN(M, K). Thus A's columns repeat