again, pls say in the beginning what this matlab code is. Just makes later developers life much easier