필터 지우기
필터 지우기

How to conbine the array inside the structure?

조회 수: 4 (최근 30일)
tabw
tabw 2014년 8월 13일
답변: Azzi Abdelmalek 2014년 8월 13일
For example,
1X10 Struct
Structure(1)=1X5 array
Structure(2)=1X10 array
Is there a way to combine it into 1X15 array?
THanks

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 8월 13일
struct1=struct('f1',num2cell(1:10))
struct2=struct('f2',num2cell(1:5))
new_struct=struct('new_f',num2cell([struct1.f1 struct2.f2 ]))

추가 답변 (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