how to implement array of structures in matlab.structure containing two fields.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 29일

0 개 추천

array1=1:10
array2=21:30
out=struct('field1', num2cell(array1),'field2',num2cell(array2))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2015년 6월 29일

답변:

2015년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by