This is code I've written in Matlab during my summer in the RNEL