function result = mdbstatus(arg)
%   MDBSTATUS - dbstatus for the Editor/Debugger
%   MDBSTATUS receives dbstatus output in a structure
%   and displays resulting line numbers separated by 
%   a semicolon.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.8 $ 

s=dbstatus(arg);
result='';
for i=1:size(s,1) 
   for j=1:size(s(i).line,2) 
      result=[ sprintf('%d',s(i).line(j)) ';' result]; 
   end 
end
