%
%  Name: listbars.m
%
%  Usage: 
%
%  This m-file lists the bars in 'Bars' in the geometry editor listbox

%
%  Version SWD970405
%
%  Author(s): Scott W. Doebling, doebling@lanl.gov
%
%  Institution: Los Alamos National Laboratory,
%               ESA-EA
%
%  Copyright (c) 1997, The Regents of the University
%       of California. (See top level of code for
%       full copyright statement.)
%

%
%  Generate list of bars
%

bartstr = sprintf('%5s%9s%9s%1s','Label','Node 1','Node 2','|');
barstr = bartstr;

for i=1:size(Bars,1)
  barstr = [barstr, sprintf('%5.0f%9.0f%9.0f%1s',Bars(i,:),'|')];
end

%
%  Assign list to listbox
%

set(hlistbox,'string',barstr)