필터 지우기
필터 지우기

Convert Tables within a cell into Doubles

조회 수: 2 (최근 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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by