Here are some things that we have written in MATLAB for working with protein structures. PdbTools read pdb files, do Ramachandran plots, rmsd, etc. Idiosyncratic, ...
I've recently obtained the book "Molecular Driving Forces" by Dill Bromberg, which introduces statistical thermodynamics and all the associated mathematics. It is ...