Ondřej Plátek Archive
PhD student@UFAL, Prague. LLM & TTS evaluation. Engineer. Researcher. Father.

Matlab/Octave: Extracting cell array to list

Problem: For loops in Matlab are slow and ungly.
Nevertherless, processing cell array needs for loop, right?

Not always, for example when we want maximum from all lists in cell array.
Or any other transitive property e.g. minimum, Sum of all elements, etc..

% extract all elements to list from cell array D
list = [D{:}] ;