Data from multiple cells into one cell
1 次查看(过去 30 天)
显示 更早的评论
Hi! I have a number of cells with data in multiple rows of strings that I would like to merge into one cell. If I would do it manually it would look like this:
UtData=[Utmetar{1};Utmetar{2}]
But the number of cells is about 100 and increasing with time so I would like to do this iteratively. Is there a way of doing this in a loop or in any other way?
The output from the cell
Utmetar{1} looks like this:
'METAR ESDF 200808311920Z 10008KT 9999 BKN037 14/10 Q1022'
'METAR ESDF 200808311950Z 09005KT 9999 FEW034 14/10 Q1022'
'METAR ESDF 200808312020Z 09003KT 060V130 CAVOK 13/10 Q1022'
'METAR ESDF 200808312050Z AUTO 09003KT 9999NDV NCD 12/09 Q1022'
... and so on
And Utmetar looks like this at the moment:
Utmetar =
Columns 1 through 5
{1255x1 cell} {1487x1 cell} {1447x1 cell} {1464x1 cell} {1433x1 cell}
Column 6
{1500x1 cell}
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!