Are you intending to compile it ?
If you compile it on windows it will only run on windows.
You need to have Matlab installed on Linux and compile in Linux for distribution to linux.
If you are distributing the source, it should work except for some functions which do not work on linux, e.g. memory.
Also do not concatenate any filepaths in your code manually. Use the included fullfile function to make paths.