Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

query about grouped data

2 visualizaciones (últimos 30 días)
Seemab  Janjua
Seemab Janjua el 12 de Dic. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
i have dataset (image attached) and i want to group data for every 5 rows...
  1 comentario
jgg
jgg el 12 de Dic. de 2015
Editada: jgg el 12 de Dic. de 2015
I think you need to provide more information; what do you mean by group? There are lots of different ways to group and combine data, and it's unclear what you're trying to do.
The simplest way to start would be just create a new vector v = [1:n] where n is the number of rows, then create grouping variable g = floor(v./5). You can then go from there to do whatever you want to do.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by