Concatenation error while defining a cell variable

1 Ansicht (letzte 30 Tage)
Furqan Hashim
Furqan Hashim am 25 Jul. 2020
Kommentiert: Stephen23 am 25 Jul. 2020
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.

Akzeptierte Antwort

KSSV
KSSV am 25 Jul. 2020
Bearbeitet: KSSV am 25 Jul. 2020
col_req = {'columnA', 'ColumnB', 'ColumnC' }
OR
col_req = {'columnA', 'ColumnB',........
'ColumnC' }
  2 Kommentare
Furqan Hashim
Furqan Hashim am 25 Jul. 2020
@KSSV what is the purpose of ...... can you explain?
KSSV
KSSV am 25 Jul. 2020
It is to continue your code to next line.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by