modified matlab file to adjust the linux