S = {[1,4,7],[1,4],[4,5,7],[3,5,6],[2,3,6,7],[2,7]}
Cell arrays are the simplest container class in MATLAB, they can store arrays of other classes, of any size. Note that there aretwo different ways to index a cell array, so read the documentation carefully:
Note that each of your[...] forms one numeric array. It is very important to note that in MATLAB[] is aconcatenation operator (and a few other things):
Best Answer