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일
col_req = {'columnA', 'ColumnB', 'ColumnC' }
OR
col_req = {'columnA', 'ColumnB',........
'ColumnC' }

댓글 수: 2

@KSSV what is the purpose of ...... can you explain?
It is to continue your code to next line.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates 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