Borrar filtros
Borrar filtros

Convert Tables within a cell into Doubles

2 visualizaciones (últimos 30 días)
Isabelle Museck
Isabelle Museck el 3 de Jun. de 2024
Comentada: Voss el 3 de Jun. de 2024
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!

Respuesta aceptada

Voss
Voss el 3 de Jun. de 2024
Here's one way:
CoPyData = cellfun(@table2array,CoPyData,'UniformOutput',false);
  2 comentarios
Isabelle Museck
Isabelle Museck el 3 de Jun. de 2024
Thank you so much!
Voss
Voss el 3 de Jun. de 2024
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by