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.

 채택된 답변

John D'Errico
John D'Errico 2016년 5월 14일
편집: John D'Errico 2016년 5월 14일

1 개 추천

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

Enes Kaldirimci
Enes Kaldirimci 2016년 5월 17일
Thank you that is useful, i am familiar enough :)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 14일

0 개 추천

out=min(reshape(K,28,[]))

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2016년 5월 14일

댓글:

2016년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by