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

1 visualización (últimos 30 días)
fatemeh p
fatemeh p el 31 de Dic. de 2021
Editada: fatemeh p el 31 de Dic. de 2021
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 comentario
Adam Danz
Adam Danz el 31 de Dic. de 2021
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.

Iniciar sesión para comentar.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 31 de Dic. de 2021
I suggest looking into cvpartition.

Más respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by