<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Dear list-members,<br><br>I would like to compute a common frequency specific DICS spatial filter for my baseline and post-stimulus time window<br>as an average across trials, and then use this filter on a trial by trial basis to do the beam-forming<br>for the baseline and post-stimulus time window separately.<br><br>The reason is that I would like to localize the generators of sustained task-related beta-band activity (1.2 seconds).<br><br>The code I am planning to use looks as follows:<br> <br> cfg = [];<br>
cfg.channel = {'MEG' '-MLP12' '-MLT41' '-MRC12' '-MRC14' '-MRC25'
'-MRP56' '-MRT21' '-MLT57' '-MLT52' '-MRF22' '-MRF13' '-MRF24' '-MRF43'
'-MLO22' '-MLF25' '-MRO31' '-MRO21'};<br> cfg.grid = warped_grid.grid;<br> cfg.vol = warped_grid.hdm;<br> cfg.frequency = 15;<br> cfg.method = 'dics';<br> cfg.projectnoise = 'yes';<br> cfg.keepfilter = 'yes';<br> cfg.lambda = 0.05;<br> cfg.dim = [Nx Ny Nz];<br> cfg.rawtrial = 'no';<br> cfg.keeptrials = 'no';<br> <br> [common_filt] = sourceanalysis(cfg,common_TF);<br> cfg.grid.filter = common_filt.avg.filter;<br> <br> cfg.rawtrial = 'yes';<br> cfg.keeptrials = 'yes';<br> [pre_source] = sourceanalysis(cfg,pre_TF)<br> [post_source] =sourceanalysis(cfg,post_TF);<br><br><br>Can anyone tell me if this code would be ok?<br>I am not sure if is correct to specify the cfg.rawtrial = 'yes' <br>option.<br><br>Any help would be appreciated.<br><br>Thanks, <br>fred </body>
</html>