QR decomposition of a matrix using Gram Schmidt is explained in this video with an example. For Gram Schmidt process watch from 00:30 to 10:00