Added 3 Matlab files. Only MkSgateData2 actually works. I can't make heads or tails of the phase it returns, though. You can run it using the parameters in ExParams.