i checked it out and you are right it's all the combinations. hehe i'm still very new at this. the anovan part has some problems but i think i can manage that on my own. (the values inserted in the anovan must be in the form of 176*1 char array). thanks a lot again! you've really been a great help!
*EDIT
I ended up with two scripts one for a matrix that has collumns containing only categorical data and one for collumns containing only numerical. Can you help me write a script that can work with a matrix having collumns of both kinds? I was wandering if it can be done with an if-else-end construction or if i have to use input() command giving information about which collumn is numerical.
thank you.
categorical data
for i=1:176 >>>
for j=(i+1):176>>
big=a(:,i);>>
big=char(big);>>
mak=a(:,j);>>
mak=char(mak);>>
anovan(total_adds,{big mak},'model','full','sstype',3)>>
for k=(j+1):176>>
lad=a(:,k)>>
lad=char(lad)>>
anovan(total_adds,{big mak lad},'model','full','sstype',3)>>
end>>
end>>
numerical data
for i=1:176>>
for j=(i+1):176>>
big=a(:,i);>>
big=cell2mat(big);>>
mak=a(:,j);>>
mak=cell2mat(mak);>>
anovan(total_adds,{big mak},'continuous',[1 1],'model','full','sstype',3)>>
for k=(j+1):176>>
lad=a(:,k)>>
lad=cell2mat(lad)>>
anovan(total_adds,{big mak lad},'continuous',[1 1 1],'model','full','sstype',3)>>
end>>
end