Okay... My previous approach would be correct if I wanted to plot the out- (or in-) degree of each node, not the degree distribution...
For out-degree distribution:
Nfrom = G.data(:,1); %Will be used to compute out-degree
Nfrom = unique(Nfrom); %Will be used to compute the outdegree distribution.
outdegNsG = histc(G.data(:,1), Nfrom);
outdd = histc(outdegNsG, unique(outdegNsG));
so, I should plot:
loglog(1:length(outdd),outdd);
Same for indegree...