Let's say I have a cell c_infos
<1x313 cell>, that contains (among others) a name associated to a node_ID
. c_infos{1,i}.node_ID
and c_infos{1,i}.name
. I want to create a matrix that for each node_ID
, we do have all the associated names.
I started with:
function [] = displayNodeCusts (c_infos)
list = [] ;
for i = 1:length(c_infos)
for j = 1:length(c_infos)
if c_infos{1,i}.node_ID == c_infos{1,j}.node_ID
list(end+1) = c_infos{1,j}.name
end
end
end
end
But then I don't know which node is associated to the names.