Seg-2 Reader for MATLAB

So I have been looking for a seg-2 reader for MATLAB for some time now.  For those of you who don’t know, seg-2 is a file format for storing seismic data.  Anyways, I’ve googled “seg-2 reader  MATLAB” for sometime and came up with some shareware software and some broken links pointing to MATLAB code.

Today, I have found some MATLAB code here.  For posterity, I will post the code here as I do not know the volatility of the site hosting the code.