concatenate a double to a cell
조회 수: 1 (최근 30일)
이전 댓글 표시
This is probably a silly question but:
I have a 4164x7 cell and a 4164x1 double. I want to concatenate so as to get a 4164x8 cell. However, all my methods have come up nil (cat, vertcat and horzcat). I have even tried to transpose the array. Any help would be nice.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 11월 21일
편집: Azzi Abdelmalek
2013년 11월 21일
a={1 2 3;4 5 6}
b=[5 8 12]
out=[a;num2cell(b)]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!