How to extract training set from dataset?
6 ビュー (過去 30 日間)
古いコメントを表示
Hello, I've to extract a training set from my dataset 214x11. How can I do? Please help me!
0 件のコメント
回答 (1 件)
Kirby Fears
2015 年 9 月 22 日
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.
参考
カテゴリ
Help Center および File Exchange で Text Analytics Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!