Resultados da pesquisa a pedido "pre-allocation"

3 a resposta

Como posso pré-alocar um vetor não numérico no MATLAB?

Muitas vezes me vejo fazendo algo assim: unprocessedData = fetchData(); % returns a vector of structs or objects processedData = []; % will be full of structs or objects for dataIdx = 1 : length(unprocessedData) processedDatum = ...