Concatenation error while defining a cell variable

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.

 採用された回答

KSSV
KSSV 2020 年 7 月 25 日
編集済み: KSSV 2020 年 7 月 25 日

0 投票

col_req = {'columnA', 'ColumnB', 'ColumnC' }
OR
col_req = {'columnA', 'ColumnB',........
'ColumnC' }

2 件のコメント

Furqan Hashim
Furqan Hashim 2020 年 7 月 25 日
@KSSV what is the purpose of ...... can you explain?
KSSV
KSSV 2020 年 7 月 25 日
It is to continue your code to next line.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

製品

タグ

質問済み:

2020 年 7 月 25 日

コメント済み:

2020 年 7 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by