function text=concat(text1,text2,text3,text4,text5,text6)
%function text=concat(text1,text2,text3,text4,text5,text6)
%                        for concatenating text or arrays
text=text1;
l1=length(text);
l2=length(text2);
text(l1+1:l1+l2)=text2;
if nargin>2
   l3=length(text3);
   text(l1+l2+1:l1+l2+l3)=text3;
   if nargin>3
      l4=length(text4);
      text(l1+l2+l3+1:l1+l2+l3+l4)=text4;
       if nargin>4
          l5=length(text5);
          text(l1+l2+l3+l4+1:l1+l2+l3+l4+l5)=text5;
         if nargin>5
            l6=length(text6);
            text(l1+l2+l3+l4+l5+1:l1+l2+l3+l4+l5+l6)=text6;
          end
       end   
   end
end
