i've created 3 diaries on my matlab. they are: 1. rectangle 2. diary 3. myDiary. if i open matlab and start coding then in which diary my codes will be saved by default?
Best Answer
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.
You can check the status of the diary with the following code
diaryStatus = get(0,'Diary');
ThediaryStatus will be the string 'on' if a diary has already been started to log keyboard input. If the status is 'off' then there is no existing diary and a new one can be started. Seehttp://www.mathworks.com/help/matlab/ref/diary.html for details.
Best Answer