MLog:

Path: Common/GUIs

% Message log. Keeps an ordered, scrollable set of messages.

 Type MLog('demo') for an example.
  
--------------------------------------------------------------------------
   Form:

   MLog('init')        % Initialize a new blank MLog window
   MLog('init',text)   % Initialize a new blank MLog window with text
   MLog('name',name)   % Use the supplied name in the figure heading
   MLog('add',text)    % Append text as new element at end of the set
   MLog('add',text,k)  % Append text to end of the kth element of the set
   MLog('add',text,0)  % Append text to end of the last element of the set
   MLog('show',k)      % Show the kth element of the set
   MLog('reset')       % Delete stored text array and reset display
   t = MLog('get',k)   % Return text of kth element
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action    ''    Can be: {init, name, add, reset, get}
   text      ''    Text to store in MLog window
   index     (1,1) Optional. Index of text cell array.

   -------
   Outputs
   -------
   t         ''    Text of kth element if called as t = MLog('get',k)

--------------------------------------------------------------------------

Children:

Common: Graphics/SliderBar

Back to the Common Module page