Converting Matlab File To The Older Model