MATLAB does not recognize changes to files when I change git branched. To fix the issue I have to run first run the code in debug mode and after that every thing will be OK.
Is there a way to force MATLAB to not cache the files in memory and read from drive so that this does not happen?
To clear a specific function/script from memory and force Matlab to re-read it from disk:
clear myfun
To clear all functions/scripts from memory:
clear functions
This should allow you to git branch
without an issue.
For more detail see documentation here. Note that clear all
accomplishes this same task but the expense of clearing all variables in the workspace etc.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments