how to take just 10% of my whole data and then train it?

1 次查看(过去 30 天)
Hi
i have a 500*10 matrix of data and now i want to use just first 10% of rows. how can i do this?
  1 个评论
Adam Danz
Adam Danz 2021-12-31
10% of all elements in the matrix?
10% of the columns or rows?
I also recomment using cvpartition as Cris LaPierre recommended. If you do not have the Stats & ML toolbox, use randperm to select indices of the matrix.

请先登录,再进行评论。

采纳的回答

Cris LaPierre
Cris LaPierre 2021-12-31
I suggest looking into cvpartition.

更多回答(0 个)

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by