Convert Tables within a cell into Doubles

3 ビュー (過去 30 日間)
Isabelle Museck
Isabelle Museck 2024 年 6 月 3 日
コメント済み: Voss 2024 年 6 月 3 日
Hello there I have a 10x1 cell with 10 tables of data from 10 different trials. I waas wondering if there is a way to convert the tables within the cell to doubles? This is what it looks like right now. I just want it to be a 10x1 cell of 541x2 doubles instead of 541x2 tables. Thank you so much for the help!

採用された回答

Voss
Voss 2024 年 6 月 3 日
Here's one way:
CoPyData = cellfun(@table2array,CoPyData,'UniformOutput',false);
  2 件のコメント
Isabelle Museck
Isabelle Museck 2024 年 6 月 3 日
Thank you so much!
Voss
Voss 2024 年 6 月 3 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by