How can i display field variables of structure in 'Variable' GUI as columns
7 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a structure with multiple field variables that I would like to show up in the Variables GUI as a table (with field variables as columns, with individual cases as rows).
I have seen this done before when using the EEGLAB plugin (see attachment 1).
But when i try to create my own structure - it just shows the field variables as a list (see attachment 2).
How can i show my field variables as columns (like attachment 1)?
Cheers,
An
5 个评论
Walter Roberson
2019-7-22
The difference is that for EEGLAB, there is a struct array with multiple fields each of which is a scalar, whereas for your case, you have a scalar struct with multiple fields, each of which is vector.
beh_data = struct('RT', num2cell(EEG2.beh_data.RT), 'force', num2cell(EEG2.beh_data.force))
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!