Creating a Datastore from either two Datastores, or a number of files populated in different folders.
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ayden Clay
il 26 Mag 2020
Commentato: Ayden Clay
il 2 Giu 2020
Hello, I'm working with some large data sets, and have been using tall arrays and datastores. Now I have two datastores created from two folders say dsL and dsR. The arrays are NxM. Now I need to create say dsLR which is both datastores combined (horizontally). Which will be converted into a tall array. Now I obviously have access to the files separately in their folders, and to the two datastores, but I'm struggling to combine the two.
0 Commenti
Risposta accettata
Srivardhan Gadila
il 30 Mag 2020
As per my understanding I'm listing the two ways of comibing the datastores dsL & dsR:
%First one
imdsCombined = combine(imdsdsL,imdsdsR);
The above will results in combined datastore but the read output would be a 1x2 cell array with 1st cell element being the output of read(imdsdsL) and the other one being the output of read(imdsdsL)
%Second one
imdsCombined = datastore({'path to dsL', 'path to dsR'},'Type','tall')
The above will result in creation of datastore with imdsCombined.Files containing the files of both imdsdsL.Files & imdsdsR.Files.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Datastore 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!