Azzera filtri
Azzera filtri

Concatenate array from different main name struct

4 visualizzazioni (ultimi 30 giorni)
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];

Risposta accettata

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

Più risposte (0)

Categorie

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

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by