How to use multiple diaries in Matlab

10 visualizaciones (últimos 30 días)
Ajay Kumar
Ajay Kumar el 12 de Nov. de 2011
How do I have two diaries in matlab for example:
>> diary a.txt
>> disp('1')
1
>> disp('2')
2
>> diary b.txt
>> disp('3')
3
>> disp('4')
4
>> diary b.txt
>> disp('5')
5
>> disp('6')
6
>> diary a.txt
>>
I want to see all the commands between diary a to be in that file and all in between diary b to be in diary b.txt

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Nov. de 2011
Using multiple simultaneous diaries is not supported.
If you were to disp() unique strings indicating the beginning and end of each diary location, then you could post-process the diary to extract what you wanted.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by