When you open Matlab, no diary is active. See:
get(0, 'Diary')
get(0, 'DiaryFile')
When you open several diaries, only the last one is used to log the activities in the command window.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!