MATLAB: Create a pattren to execute specfic commands

patternspecific command

Hi,
I am sorry sometimes its really hard to formulate a right question. However I will try.
I want to write something in which I can execute a pattren for the same thing.
For example:
I have following command:
B = [C{1,1} C{1,2} C{1,3} C{1,4} C{1,4} C{1,5}]
Can I write something like following:
B = [C{1,1} ….. C{1,5}]
If yes, could you plese tell me what would be the command?
Thanks, Mustahsan

Best Answer

B = [C{1,1:5}];