How to convert some arrays into one cell array?

Dear all,
I am Beginner in MATLAB and I have this problem: I have some array with one column and different rowes, for example: A=[1;15;52;65;81], B=[2;7;15;40;65;84;96],C=[7;9;4;8;16;] and D=[7;9;20;65;98;23;14;18], now how can I convert these arrays into one cell array which:
cell array={[A] [B] [C] [D]};
Best regards
ESSI

 채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 16일

0 개 추천

{A, B, C, D}
If, that is, you want the result to be a 1 x 4 cell, where the first cell contains A, the second B, and so on.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

태그

질문:

2013년 6월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by