I have a dataset freq_segmented which contains EEG FFT data from 14 trials from 19 channels for 101 freqencies (3-15 in tenths of a hz) stored in the field powspectrm.
When I look at the data it appears as below. Val(:,:,1) continues to val(:,:,101).
It appears that the 19 columns hold data for the 19 channel sensors, 1 value per 101 frequency portions.
How can I access a particular row, column, and frequency?
">> freq_segmented.powspctrm" returns the data as formatted in the image above.
">> freq_segmented.powspctrm{:,:,1};" returns the error Cell contents reference from a non-cell array object.
">> freq_segmented.powspctrm.val(1,1,1);" returns the error Struct contents reference from a non-struct array object.
">> freq_segmented.powspctrm(:,:,1);" returns nothing

 採用された回答

Stephen23
Stephen23 2018 年 9 月 25 日
編集済み: Stephen23 2018 年 9 月 25 日

0 投票

Try basic subscript indexing:
mat = freq_segmented.powspctrm(:,:,1)
without the semi-colon (which suppresses output from being displayed).

2 件のコメント

Stephen23
Stephen23 2018 年 9 月 25 日
Mark Jones'S "Answer" moved here:
Oh my, if I don't look like a rank newbie . . . which I am!
Thanks, Stephen. That cleared it up for me.
Mark
Stephen23
Stephen23 2018 年 9 月 25 日
@Mark Jones: I hope that it helped. Remember to accept my answer, this is the easiest way to thank the volunteers on this forum.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEEG/MEG/ECoG についてさらに検索

製品

リリース

R2017a

タグ

質問済み:

2018 年 9 月 25 日

コメント済み:

2018 年 9 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by