I am having matrix
A=[1 2; 2 3; 2 4]
when i use the command
NN = num2cell(num2cell(A),2)partdisp(NN)
i am getting the result as
NN = {1x2 cell} {1x2 cell} {1x2 cell}
The formation of clusters :
{1} {2} {2} {3} {2} {4}
but i need to have the result in the following manner
NN = {1x1 cell} {1x1 cell} {1x1 cell}
The formation of clusters :
{1 2} {2 3} {2 4}
could anyone please help me on it.
Best Answer