I have this cell array:
cells =
'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i'
What I want to do is add 2 columns with '-' in them.
cells =
'a' 'b' 'c' '-' '-' 'd' 'e' 'f' '-' '-' 'g' 'h' 'i' '-' '-'
Is it possible to do it dynamically depending on the number of rows?
Best Answer