vertcat errors - need a 'workaround' solution
Show older comments
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)
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!