필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Linus Dock
Linus Dock 2016년 10월 7일
댓글: Linus Dock 2016년 10월 10일
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?

채택된 답변

Massimo Zanetti
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개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by