How to construct a vector cell array from two cells with different dimensions

4 visualizaciones (últimos 30 días)
Hi all,
I have cells called "Station_ID_1" and "Station_ID_2"."Station_ID_1" is a 1*2 cell (each cell is 1000*1 cell) and "Station_ID_2" is a 547*1. How can I have 2547*1 cell? (Both cells have been attached here)

Respuesta aceptada

DGM
DGM el 30 de Dic. de 2022
Perhaps something like this?
allstationID = [vertcat(Station_ID_1{:}); Station_ID_2]
  3 comentarios
Stephen23
Stephen23 el 30 de Dic. de 2022
Simpler:
allstationID = vertcat(Station_ID_1{:},Station_ID_2)
DGM
DGM el 31 de Dic. de 2022
Good gravy that's a forehead slapping moment.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by