Say I have this:
C = {'a';'b';'c';'d';'e'}; s = [1 1 2 3 1];t = [2 2 3 4 4];G = graph(s,t);G.Edges.Label = C;
With the following two commands I would expect to get the same output, but I get different, why with the second comand only one output is given?
C{[2 3]}ans = 'b'ans = 'c'G.Edges.Label{[2 3]}ans = 'b'
Best Answer