That's quite a broad subject, and it's better to get yourself a book than using online tutorials IMHO. Are you familiar with the basics of Vector/Matrix algebra?
Oh and BTW, it might be better to use quaternions for rotations instead of matrices, they're usually faster to compute and require only four floats storage.