MATLAB Codes for "Optimization of light exposure and sleep schedule for circadian rhythm entrainment" in PLoS ONE
Matlab codes and simulation files for entrainment cases in PLoS ONE "Optimization of light exposure and sleep schedule for circadian rhythm entrainment".
The latest release MATLAB R2020a can be downloaded here: https://www.mathworks.com/products/get-matlab.html?s_tid=gn_getml
The installation of MATLAB could follow the instruction in MathWorks: https://www.mathworks.com/help/install/install-products.html
Folder 'Periodic_Solution' contains MATLAB codes and simulation files to generate and plot the periodic solutions of various two-process models;
Folder 'Terminal_Condition' contains MATLAB codes and simulation files to check the terminal condition of entrainment fot the discussion in Section 0.1 in the Appendix;
Folder 'Travelers' contains MATLAB codes and simulation files to simulate the entrainment cases of the transmidian traveler in Section 4.1;
Folder 'Shift_Workers' contains MATLAB codes and simulation files to simulate the entrainment cases of the night shift worker in Section 4.2.