merge arrays of different types to write in excel sheet
1 次查看(过去 30 天)
显示 更早的评论
- 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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!