Create a matrix with given dimension

I want a three dimensional matriz where the index of the first dimension is given by: s = [2,4,5,6], the second dimension is only l = 12:16 and the third dimension is the indexes t = 1:12.
Then, I want to build the array d = d[s,l,t]