function [hh]=plot3arr(xx,style,lwidth)

if exist('lwidth','var')==0,
   lwidth=1;
end

%We assume each row is a data point
if exist('style','var')==0,
    hh=plot3(xx(:,1),xx(:,2),xx(:,3));
else
    hh=plot3(xx(:,1),xx(:,2),xx(:,3),style);
 end
 set(hh,'LineWidth',lwidth);
return
