Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

query about grouped data

1 visualizzazione (ultimi 30 giorni)
Seemab  Janjua
Seemab Janjua il 12 Dic 2015
Chiuso: MATLAB Answer Bot il 20 Ago 2021
i have dataset (image attached) and i want to group data for every 5 rows...
  1 Commento
jgg
jgg il 12 Dic 2015
Modificato: jgg il 12 Dic 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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by