merge arrays of different types to write in excel sheet

조회 수: 1 (최근 30일)
saharsahar
saharsahar 2013년 7월 7일
  • Hi All, I have arrays of different types:*
a : 4*8 Char
b : 4*1 double
c : 4*1 double
d : 4*8 Char
e : 4*1 double
I want to merge them as a one array , lets'say, Output.and finally I want to write Output with all of the elements to the excel sheet.
Is there any way to merge these arrays of different types together?
Thanks in advanced for your help.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 7일
편집: Azzi Abdelmalek 2013년 7월 7일
Example
a=repmat('a',4,8)
b=rand(4,1)
out=[cellstr(a); num2cell(b)]

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by