Concatenation error while defining a cell variable

1 view (last 30 days)
I am trying to define a cell variable as
col_req = {'columnA', 'ColumnB',
'ColumnC'}
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
KSSV on 25 Jul 2020
Edited: KSSV on 25 Jul 2020
col_req = {'columnA', 'ColumnB', 'ColumnC' }
OR
col_req = {'columnA', 'ColumnB',........
'ColumnC' }
  2 Comments
Furqan Hashim
Furqan Hashim on 25 Jul 2020
@KSSV what is the purpose of ...... can you explain?
KSSV
KSSV on 25 Jul 2020
It is to continue your code to next line.

Sign in to comment.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!