how to save values in matfile as array
조회 수: 2 (최근 30일)
이전 댓글 표시
i wanted to create a matfile...
stats=[ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];
i did like this... each statmat1 to statmat26 contains 8 values... now when i save in the above manner the values are getting saved in one single row of matfile having 208 columns....
how can i save each statmat values in one matfile having 26 rows each having 8 column values... please reply...
댓글 수: 0
채택된 답변
Andrei Bobrov
2012년 12월 3일
편집: Andrei Bobrov
2012년 12월 3일
Elysi wrote: " ...stats = [ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];..."
out = reshape(stats,8,[]).';
추가 답변 (1개)
Ilham Hardy
2012년 12월 3일
stats=[ statmat1;statmat2;statmat3;......... statmat24;statmat25;statmat26];
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!