Посмотрите здесь
http://www.tutornet.ru/Library/Books/Math/...convmtx.asp.htm
и здесь
http://pco.iis.nsk.su/ICP/Introduction/dd5/node21.html