Azzera filtri
Azzera filtri

How to obtain one cell of output data from multiple cells?

3 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Massimo Zanetti
Massimo Zanetti il 7 Ott 2016
Modificato: Massimo Zanetti il 7 Ott 2016
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{:})}

Più risposte (0)

Categorie

Scopri di più su Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by