How to obtain one cell of output data from multiple cells?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi! I need to obtain one cell of output data from multiple cells (actually around 100) inside another cell.
The cell containing the data output cells looks like this:
Utmetar =
{1255x1 cell}
{1487x1 cell}
{1447x1 cell}
{1464x1 cell}
{1433x1 cell}
{1500x1 cell}
...and so on
and I would like the output cell to look something like this:
Utmetar =
{9234x1 cell}
How can this be done in a simple manner? When I do it manually it looks like this:
flygplatsmetar=[Utmetar{1};Utmetar{2};Utmetar{3};Utmetar{4}]
I need help doing this iteratively because of the many cells. My output should look like this and sorted into a single cell if that is possible.
'METAR ESDF 200807312220Z AUTO 00000KT 9999NDV NCD 15/14 Q1021'
'METAR ESDF 200807312250Z AUTO 00000KT 9999NDV NCD 14/13 Q1021'
'METAR ESDF 200807312320Z AUTO 00000KT 9999NDV NCD 14/13 Q1020'
'METAR ESDF 200807312350Z AUTO 02002KT 9999NDV NCD 14/13 Q1020'
I posted a question earlier about the same topic but the answer unfortunately didn't help me much. Please can anybody help with this?
0 件のコメント
採用された回答
Massimo Zanetti
2016 年 10 月 7 日
編集済み: Massimo Zanetti
2016 年 10 月 7 日
Very simple. Try this:
%this is a simple version of you set of cells
U = { cell(3,1) ; cell(2,1) ; cell(4,1) }
%here you concatenate them and put them into a cell
B = {cat(1,U{:})}
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!