powered by
Create permutation matrix P to regroup elements of s by locations instead of by networks
make_Pmat(Q, nvox)
P Permutation matrix size \(QVxQV\)
The number of networks
The number of spatial locations (\(V\))
If s=(s1,...,sQ) is grouped by networks 1,...Q, then Ps=(s(1),...,s(nvox)) is grouped by locations 1,...,nvox