Hello i m totally a matlab noob. Here is it a question. I have a matrix K[97552,1] and i need to find minumum values of each 28 parts. Like K[1:28,1], K[28:56,1]... so i need 97552/28=3484 minumum values. if you help me i would be happy.. thanks a lot.

 Respuesta aceptada

John D'Errico
John D'Errico el 14 de Mayo de 2016
Editada: John D'Errico el 14 de Mayo de 2016

1 voto

So what happens if you reshape the matrix, to be 28x3484?
Then use min. So
groupmins = min(reshape(A,[28,3484]),1);
Learn to use MATLAB. If you are unfamiliar with these things, then it is time to start reading.

1 comentario

Enes Kaldirimci
Enes Kaldirimci el 17 de Mayo de 2016
Thank you that is useful, i am familiar enough :)

Iniciar sesión para comentar.

Más respuestas (1)

Categorías

Preguntada:

el 14 de Mayo de 2016

Comentada:

el 17 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by