Azzera filtri
Azzera filtri

how to extract all the data from cell and connect them to one array?

3 visualizzazioni (ultimi 30 giorni)
I have a mat file includes 100000 cells, I want to extract the data from each cell, and connect them into one array. any help?

Risposta accettata

Walter Roberson
Walter Roberson il 5 Feb 2016
The .mat file contains a variable named Record which is a cell array. Each entry is something-by-3, minimum 3 x 3 and at most 20 x 3. In total there are 1128286 entries. If you are looking for a 1128286 x 3 numeric output then:
result = vertcat(Record{:});

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by