We prove a deterministic analogue of Rudelson's sampling theorem for sums of positive semidefinite matrices. Let A1,…,Am be positive semidefinite d×d matrices, and let λ1,…,λm≥0 satisfy i=1∑mλi=1,i=1∑mλiAi=Id,∥Ai∥≤Mfor all i=1,…,m. We show that there exists a deterministic sequence of indices i1,i2,⋯∈{1,…,m} such that for every integer k≥1, k1r=1∑kAir−Id≤⎩⎨⎧k2Mln(2d),3kMln(2d),if k≤Mln(2d),if k>Mln(2d). In particular, if 0<ε≤1 and N≥9Mln(2d)ε−2, then one can choose indices i1,…,iN∈{1,…,m} such that N1r=1∑NAir−Id≤ε.