Remove old and redundant matlab functions