How can I create multi dimensional dynamic structure array in loop?

2 次查看(过去 30 天)
Hi all I want to have a structure like:
DataStruct.name(i)
name(i) include three items: Round, Trial and Paradigm
DataStruct.value(i)
value(i) include three itmes: LocX, LocY and LocZ

采纳的回答

Walter Roberson
Walter Roberson 2018-8-18
DataStruct.name(i) = struct('Round', value_for_round, 'Trial', value_for_trial, 'Paradigm', value_for_paradigm);
And likewise for value(i) with fields LocX LocY and LocZ

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by