Matlab Machine learning help

I am trying to make a data split to do some machine learning. I have a 9000 by 6 table and I need to skip the first row and keep the next two rows. I cannot figure out any code to do this for me. Thanks for the help.

Answers (1)

Laura Hann
Laura Hann on 19 Feb 2019
dataNew = data( 2:3 , : )
If you meant keeping columns instead of rows it'll be dataNew = data( : , 2:3 )

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Products

Release

R2018b

Asked:

on 19 Feb 2019

Answered:

on 19 Feb 2019

Community Treasure Hunt

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

Start Hunting!