필터 지우기
필터 지우기

cell, I want to merge cell

조회 수: 1 (최근 30일)
Tomas
Tomas 2014년 1월 11일
답변: Azzi Abdelmalek 2014년 1월 11일
I want to merge cell
i have cell Z={1x3} {1x4} i want to have cell Z={1x7} I have used loop for
Thanks

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 11일
z={{1 2 3},{4 5 6 7}}
zz=[z{:}]

추가 답변 (1개)

Image Analyst
Image Analyst 2014년 1월 11일
I don't know what that means. Do you have a 1 by 3 cell array - 3 cells, and inside each cell is another 1 by 4 cell array? Or do you have a 3 row by 4 column cell array? Have you seen the FAQ: http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F Can you give an example? Does this work?
Z = Z(:);
???

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by