Assume,

A=[1 2 3 4]

and I need all probable connection of any two number

like

Answer = [1 2; 1 3;1 4;2 3;2 4;3 4]

or for 3 connections

Answer =[1 2 3;1 2 4; 1 2 4; 2 3 4]

More Ghanshyam G. Tejani's questions See All
Similar questions and discussions