Concatenation error while defining a cell variable

1 次查看(过去 30 天)
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' }

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by