Concatenate array from different main name struct

1 Ansicht (letzte 30 Tage)
Alberto Mora
Alberto Mora am 23 Dez. 2017
Kommentiert: Alberto Mora am 23 Dez. 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];

Akzeptierte Antwort

Birdman
Birdman am 23 Dez. 2017
Result.A=[First.A;Second.A];
Result.B=[First.B;Second.B];

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by