Hello,
I'd like to test the combined effect of different filtration unit (diafiltration, ultrafiltration,…) and used them in different order. For now I have a manual code that works with a small number of unit filtration, but I would like to find something more generic and that would work with a N filtration units. For that, I need a matrix that contains the different possibilities.
The idea is to test firstly all the filtration units separately and then combine them gradualy while permuting the order.
Separator 1
Separator 2
…
Separator 1 / Separator 2
Separator 2 / Separator 1
Separator 1 / Separator 3
…
Separator 1 / Separator 2 / Separator 3
…
a=1; %Separator1
b=2; %Separator2
c=3; %Separator3
d=4; %Separator4
a1=[perms(a),0,0,0];a2=[perms(b),0,0,0];a3=[perms(c),0,0,0];a4=[perms(d),0,0,0];a5=[perms([a,b]),zeros(2,2)];a6=[perms([a,c]),zeros(2,2)];a7=[perms([a,d]),zeros(2,2)];a8=[perms([b,c]),zeros(2,2)];a9=[perms([b,d]),zeros(2,2)];a10=[perms([c,d]),zeros(2,2)];a11=[perms([a,b,c]),zeros(6,1)];a12=[perms([a,b,d]),zeros(6,1)];a13=[perms([b,c,d]),zeros(6,1)];a14=perms([a,b,c,d]);A=[a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14];
the results I need is that:
A=1 0 0 02 0 0 03 0 0 04 0 0 02 1 0 01 2 0 03 1 0 01 3 0 04 1 0 01 4 0 03 2 0 0...
thanks by advance,
bruno
Best Answer