Split the matrix for training a dataset based on the value in y axis using MATLAB
Show older comments
I have a data set with matrix 168*1 and would like to extract training set based on the y axis value.
X - axis is the value from 0 to 180 (no. of cycle)
y - axis is the value from 0 to 2.1 (capacity)
I am looking to split the data set based on the value in y axis 1.4
any suggest ?
Note: I am able to split based on the percentage
numTimeStepsTrain = floor(0.7*numel(data));
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!