Hi,
I have a matrix of 2500 x 56,
and I need to reduce the value to be half, i.e: 1250 x 56 or 1250 x 28
It's not that I want to compress the value, but I want the other 1250 just to be taken out. Meaning, i want my first 1250 original value. I hope i make sense here..
The matrix value is being save in data_all.mat.
Does anyone know how to access the row and column value?
I know about principal component analysis, but that is not what I want to do.
Thanks for the help..

 채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 18일

0 개 추천

Try
A(1:1250,:)
and
A(1:ceil(end/2),1:ceil(end/2))

추가 답변 (1개)

Pinky Incognito
Pinky Incognito 2011년 3월 18일

0 개 추천

Thanks.. but can you explain more.
What does A stands for? is it my .mat file?

댓글 수: 2

Walter Roberson
Walter Roberson 2011년 3월 18일
A is your matrix. load() your matrix from your .mat file if you need to. save() the reduced matrix back to your .mat file if you want to (but it's a good idea to save it to a _different_ .mat file until you are sure that everything worked and that you don't need the original data any more.)
Pinky Incognito
Pinky Incognito 2011년 3월 18일
Thanks a lot for helping me :)

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

카테고리

도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by