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.

回答 (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 ExchangeSequence 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