I have an array A=[1,2] and B=[5,6]
I want to generate an array C=[1*1,2*2,5*5,6*6,1*2,1*5,1*6,2*5,2*6,5*6]
That is all the possible combinations (ab is equal to ba and hence only 1 of them should be on the resultant C array).
Does matlab have an inbuilt function I can use to achieve this?
Can you help me?