I'm intend to convert my feature extraction code into C using MATLAB coder, but I'm facing trouble when trying to aggregate the features in a table. I've created a reproductible code which raises my error:
function t = table_concat_test
t = table();
features = struct();
features.a = 1;
features.b = 2;
features.c = 3;
features.d = 4;
extra_info = struct();
extra_info.name = "name";
extra_info.age = 19;
t = [t; struct2table(features) struct2table(extra_info)];
When I run the compile comamnd:
I get the following error:
??? Code generation does not support table arrays.
I was able to solve this error with the following changes:
t_temp = [t; struct2table(features) struct2table(extra_info)];
t = t_temp;
But now I get another different error:
??? The value of non-tunable property 'rowDim.length' does not match.
Any idea how I can do this? Thanks!