Borrar filtros
Borrar filtros

Concatenate array from different main name struct

4 visualizaciones (últimos 30 días)
Alberto Mora
Alberto Mora el 23 de Dic. de 2017
Comentada: Alberto Mora el 23 de Dic. de 2017
I have
First.A =[ 1; 2; 3];
First.B =[ 10; 20; 30];
Second.A=[ 97; 98; 99];
Second.B=[970; 980; 990];
How I can obtain (mantaining the same order of elements)?
Result.A=[ 1; 2; 3; 97; 98; 99];
Result.B=[10; 20; 30; 970; 980; 990];

Respuesta aceptada

Birdman
Birdman el 23 de Dic. de 2017
Result.A=[First.A;Second.A];
Result.B=[First.B;Second.B];

Más respuestas (0)

Categorías

Más información sobre Structures 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