Concatenate array from different main name struct

조회 수: 1 (최근 30일)
Alberto Mora
Alberto Mora 2017년 12월 23일
댓글: Alberto Mora 2017년 12월 23일
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];

채택된 답변

Birdman
Birdman 2017년 12월 23일
Result.A=[First.A;Second.A];
Result.B=[First.B;Second.B];
  댓글 수: 1
Alberto Mora
Alberto Mora 2017년 12월 23일
Thank you so much. Easy solution.
Regards
Alberto

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by