MATLAB: Create a variable to store sets

variables

I would like to create a variable that stores a set of numbers for an arc (a,b).
S(a,b) = {1,2,3,4,5}
S(b,c) = {3,4,5} etc
but I dont know how to write it in matlab. Please help

Best Answer

Sounds like you need a cell array:
S{set_no} = [2 3 5 6];
S(2} = [1 5 6 3 64 23];