Concatenate Fields Within a Structure

조회 수: 2 (최근 30일)
Russell Chow
Russell Chow 2021년 1월 19일
답변: Gaurav Garg 2021년 1월 27일
Currently I have two structures, each with two levels of fields. I have attached them below. In the first subfield I have E0-E50, and within each E field I have either P0001-P0009 or P001-P05 respectively. For instance, ctable 0001-0009.mat has the values of P0001, P0002, ..., P0009 within ctable_0001_0009.E0, ctable_0001_0009.E18, ..., ctable_0001_0009.E50. ctable 001-05.mat has the values of P001, P002, ..., P05 withing ctable_001_05.E0, ctable_001_05.E18, ..., ctable_001_05.E50. I am trying to concatenate within the E field to have only one structure total, so E0 should have all values from P0001-P05, and same for each E until E50. Thank you!

답변 (1개)

Gaurav Garg
Gaurav Garg 2021년 1월 27일
Hi Russell,
On more information about merging structures, you can refer to the do here or you can do manually by rereffing here.

카테고리

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