i am having a matrix and want to separate them in the depending on its value
A=[1,2,3,4,5,6,7,8,9,10]
expected result are
idx1=[1,0,0,0,0,0,0,0,0,0] % for 1
...idx10=[0,0,0,0,0,0,0,0,0,1] % for 10
loop
A=[1,2,3,4,5,6,7,8,9,10]
idx1=[1,0,0,0,0,0,0,0,0,0] % for 1
...idx10=[0,0,0,0,0,0,0,0,0,1] % for 10
Best Answer