External Interfaces |
Description of Function pb_display
The pb_display
function takes an argument entry
, which is a phone book entry. After displaying a horizontal line, pb_display
calls MATLAB function strtok
to extract the first line the entry, up to the line delimiter (^
), into t
and and the remainder into r
. Then, within a while
loop that terminates when t
is empty, it displays the current line in t
. Then it calls strtok to extract the next line from r
, into t
. When all lines have been displayed, pb_display
indicates the end of the entry by displaying another horizontal line.
function pb_display(entry) disp ' ' disp '-------------------------' [t,r] = strtok(entry,'^'); while ~isempty(t) disp(sprintf(' %s',t)); [t,r] = strtok(r,'^'); end; disp '-------------------------'
Description of Function pb_listall | Description of Function pb_keyfilter |
© 1994-2005 The MathWorks, Inc.