array of structures in matlab

3 次查看(过去 30 天)
how to implement array of structures in matlab.structure containing two fields.

采纳的回答

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

更多回答(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