How to extract training set from dataset?
Ältere Kommentare anzeigen
Hello, I've to extract a training set from my dataset 214x11. How can I do? Please help me!
Antworten (1)
Kirby Fears
am 22 Sep. 2015
If you want to store a subset of your full dataset in memory, like the first 100 rows of the matrix, just use indexing as follows:
% assuming dataset is a 2D array
trainingset=dataset(1:100,:);
This assigns the first 100 rows (for all columns) to the variable "trainingset".
Hope this helps.
1 Kommentar
Gianluca La Manna
am 24 Sep. 2015
Kategorien
Mehr zu Mathematics and Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!