Read a subset of variables in Data Store

2 visualizzazioni (ultimi 30 giorni)
Cédric Richard
Cédric Richard il 20 Nov 2020
Commentato: Cédric Richard il 20 Nov 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

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 20 Nov 2020
Modificato: KALYAN ACHARJYA il 20 Nov 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 Commento
Cédric Richard
Cédric Richard il 20 Nov 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.

Accedi per commentare.

Categorie

Scopri di più su Large Files and Big Data 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