I am handling structures in the form:
struct('num', 2,
'w1', 0.5,
'w2', 0.5 );
contained in an array:
array = [struct1, struct2, ..., structN]
I would like to know whether it is possible to find automatically all the pairs of structures, as follows:
[struct1 struct2
struct1 struct3
...
struct1 structN
struct2 struct3
...]
As a reference, I found this question for simple arrays.