vertcat errors - need a 'workaround' solution
显示 更早的评论
Please suggest a 'workaround' or alternate solution for the following error (code and data tables attached)
"An error occurred when concatenating the table variable 'ImpactWind' using VERTCAT. Caused by: Error using categorical/vertcat Ordinal arrays must have the same categories, including their order."
Note: categories are: 'other', 'airport', 'road', 'railway', 'bus-sta' ... and the common categories to both tables to vertcat are: 'other', 'airport', 'road'
load 'datatables.mat'; % note: two tables will load, C1 and R1, both have 'ImpactWind' as a variable column
X = vertcat(C1, R1)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!