Convert tables to arrays in a for loop
1 次查看(过去 30 天)
显示 更早的评论
hi there,
I have some tables named (data_1, data_2 ,data_3, data_4,data_5)
is it possible to convert them to arrays by using a for loop?
(Instead of doing it manually for each table separately)
thanks
Nikolas
0 个评论
采纳的回答
Stephen23
2018-10-16
C = {data_1, data_2 ,data_3, data_4,data_5};
D = cellfun(@table2array,C,'uni',0)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!