How do I convert my matrix of 5799 x 1 double into 1933 rows of 3 x 1 cells?
조회 수: 2 (최근 30일)
이전 댓글 표시
Is there a way to convert my matrix of 5799 x 1 double into 1933 rows of 3 x 1 cells? I am using mat2cell and I can't seem to find a way to do so without having to type '3' 1933 times...
%a is a 5799 x 1 double matrix
convert_to_cell = mat2cell(a, [3 3 3 3 3 3 3 3], [1]); %can't type so many 3s
I really appreciate your help!!
Just a note that a contains both postiive and negative decimal values...
댓글 수: 0
채택된 답변
Mehmed Saad
2020년 5월 6일
편집: Mehmed Saad
2020년 5월 6일
[3 3 3 3 3 3 3 3]
or
3*ones(1,8)
so you need 1933 times so what you have to do?
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Model References에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!