I am creating a script in an m-file with matlab. To test certain sections I will highlight it and evaluate it. For a while, it will execute the script, but after awhile it will just paste the script into the main command window. This isn't caused by something I am changing but will simply start not working for what seems to be no reason. If I restart Matlab it will work again for awhile.
What can I do to fix this?
What can I do to fix this?