Is there a way to create and preallocate for tables with a large number of variables (can all be of same type e.g. double) without having to specify each variable independently?
21 次查看(过去 30 天)
显示 更早的评论
I want to create tables with a large number of variables (i.e. many columns of data all of type double) so using for example
sz =[1000,1000]; vartype = {'double','double',....,'double'}; T = table{'Size',sz,'VariableTypes',vartype};
is not reasonable. I assume there's an easier way to do this (i.e. without having to write 'double' thousands of times), but haven't been able to find it. Any suggestions would be appreciated.
0 个评论
采纳的回答
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!