array of structures in matlab

3 Ansichten (letzte 30 Tage)
sweta arya
sweta arya am 29 Jun. 2015
Beantwortet: Azzi Abdelmalek am 29 Jun. 2015
how to implement array of structures in matlab.structure containing two fields.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 29 Jun. 2015
array1=1:10
array2=21:30
out=struct('field1', num2cell(array1),'field2',num2cell(array2))

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by