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.

답변 (1개)

Laura Hann
Laura Hann 2019년 2월 19일

0 개 추천

dataNew = data( 2:3 , : )
If you meant keeping columns instead of rows it'll be dataNew = data( : , 2:3 )

카테고리

도움말 센터File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 2월 19일

답변:

2019년 2월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by