Convert tables to arrays in a for loop

3 ビュー (過去 30 日間)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2018 年 10 月 16 日
コメント済み: Nikolas Spiliopoulos 2018 年 10 月 19 日
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

採用された回答

Stephen23
Stephen23 2018 年 10 月 16 日
C = {data_1, data_2 ,data_3, data_4,data_5};
D = cellfun(@table2array,C,'uni',0)
  1 件のコメント
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2018 年 10 月 19 日
thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by