I want to calculate Nodal clustering coefficient distribution with a connectivity matrix But when I operate this code, it return nothing. What is the problem? Can't I use function plot like that?
cm = [0,1,1,1,0;1,0,0,1,0;0,1,0,0,0;1,0,0,0,0;0,0,0,0,0];
bg = biograph(cm);
for i = 1:5
intNodes = getrelatives(bg.nodes(i));
num = numel(intNodes);
plot(i,num);
end