how to split the dataset into four different variables

11 visualizzazioni (ultimi 30 giorni)
uma il 2 Giu 2022
Commentato: dpb il 2 Giu 2022
As we can see from the below code we have divided the data into four my question is how to divide the data into four variables having first dimension same like idxTrain and traindata should have first dimension same and idxtest and test data should have first dimension same.
Thank you.
cv = cvpartition(2310, 'KFold', 10);
idxTrain = training(cv, 1);
idxTest = test(cv, 1);
traindata = data(idxTrain, :);
testdata = data(idxTest, :);
  1 Commento
dpb il 2 Giu 2022
I don't understand the questioni??? Please explain precisely what you mean/want. Reason behind the question might help to add some context.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by