Read a subset of variables in Data Store

2 visualizaciones (últimos 30 días)
Cédric Richard
Cédric Richard el 20 de Nov. de 2020
Comentada: Cédric Richard el 20 de Nov. de 2020
Hi
I have a huge datastore where I would like to read a subset of variables. The variable names are of the form d1, d2, ... d60000
How can I read a subset such as d24, ..., d132?
Note that I would also like to use this with partition function.
Best

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 20 de Nov. de 2020
Editada: KALYAN ACHARJYA el 20 de Nov. de 2020
subset=[...]; % define
for i=1:length(subset)
filename=['d',num2str(subset(i))];
% Load the data one by one as per subset numbers
% If you want store the subset data for further operation, please use array/cell array
end
  1 comentario
Cédric Richard
Cédric Richard el 20 de Nov. de 2020
Hi,
Not exactly what I need!
I want to use function:
ds.SelectedVariableNames = {'d14','d21','d29','d36'};
but variables names should be a large arbitrary collection of variables of the form dx, x running e.g. from 612 to 1456.

Iniciar sesión para comentar.

Categorías

Más información sobre Large Files and Big Data 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