cell array conversion included cells and tables
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Farhad Abedinzadeh
am 30 Mär. 2022
Kommentiert: Farhad Abedinzadeh
am 31 Mär. 2022
Hi,I have a cell array that given below which is included both table and cell in its rows and I would like to extract numeric values of each rows into a new matrix.How could I do that?
I have trying some functions but I couldn't deal with that.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 30 Mär. 2022
temp = rqa_stat;
tmask = cellfun(@istable, temp);
temp(tmask) = cellfun(@table2array, temp(tmask), 'uniform', 0);
Now temp is a cell array of numeric arrays.
It is not clear to me whether that is what you want, or if you then want to cell2mat() to put everything into one numeric matrix.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!