Effacer les filtres
Effacer les filtres

How can i display field variables of structure in 'Variable' GUI as columns

8 vues (au cours des 30 derniers jours)
An Nguyen
An Nguyen le 22 Juil 2019
Commenté : An Nguyen le 22 Juil 2019
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).
matlab_attachment1.png
But when i try to create my own structure - it just shows the field variables as a list (see attachment 2).
matlab_attachment2.png
How can i show my field variables as columns (like attachment 1)?
Cheers,
An
  5 commentaires
Walter Roberson
Walter Roberson le 22 Juil 2019
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))
An Nguyen
An Nguyen le 22 Juil 2019
Oh, I see now. Thank you!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by