saving value in matfile
이전 댓글 표시
i did some calculation and got a variable 'binr' with 1 row and many column values( more than 800)....
i wanted to save it in a matfile in a format, so that i can contain values only upto 25 coulmns in one row.... so i wrote the code as
binr = reshape(binr,25,[]).';
but if binr is not divisible by 25 i'm getting error as
??? Error using ==> reshape
Product of known dimensions, 25, not divisible into total number of elements, 871.
Error in ==> Todel at 176
binr = reshape(binr,25,[]).';
What can i do to store the value of this variable in a matfile with only 25 columns even if the value in binr is not divisible by 25..... is it possible.... please do reply....
댓글 수: 2
Walter Roberson
2013년 3월 8일
Do you want to throw away the extras, or do you want to pad to make up a full line ?
Elysi Cochin
2013년 3월 8일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!