To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / _FullBNT / BNT / general / unroll_set.m @ 8:b5b38998ef3b

History | View | Annotate | Download (228 Bytes)

1
function U = unroll_set(S, ss, T)
2
% UNROLL_SET Make T shifted copies of the set of nodes S in a slice of size ss.
3
% U = unroll_set(S, ss, T)
4

    
5
offset = repmat(0:ss:(T-1)*ss, [length(S) 1]);
6
U = repmat(S(:), [1 T]) + offset;
7