Concatenation error while defining a cell variable

1 vue (au cours des 30 derniers jours)
Furqan Hashim
Furqan Hashim le 25 Juil 2020
Commenté : Stephen23 le 25 Juil 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.

Réponse acceptée

KSSV
KSSV le 25 Juil 2020
Modifié(e) : KSSV le 25 Juil 2020
col_req = {'columnA', 'ColumnB', 'ColumnC' }
OR
col_req = {'columnA', 'ColumnB',........
'ColumnC' }
  2 commentaires
Furqan Hashim
Furqan Hashim le 25 Juil 2020
@KSSV what is the purpose of ...... can you explain?
KSSV
KSSV le 25 Juil 2020
It is to continue your code to next line.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by