Scaling --> transformation matrix

I’m supposed to scale a model in the direction [1,1,1,0] and with scalingfactor 2. How do I compute the transformation matrix?

Hi !

Do you need the matrix ?, wouldn’t it be ok to just use glScale to do it ?, if not, then there are zillions of matrix tutorials on the internet, ask google for a few thousand of links to try out.