Concatenation error while defining a cell variable

2 views (last 30 days)
I am trying to define a cell variable as
col_req = {'columnA', 'ColumnB',
and i get the following error. I don't understand why changing line in code causes this error? If cell values are more I can't fit them in one line causing readability issue.
Dimensions of matrices being concatenated are not consistent.

Accepted Answer

KSSV on 25 Jul 2020
Edited: KSSV on 25 Jul 2020
col_req = {'columnA', 'ColumnB', 'ColumnC' }
col_req = {'columnA', 'ColumnB',........
'ColumnC' }

More Answers (0)


Find more on Cell Arrays in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!