<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Pélagie,
<div class=""><br class="">
</div>
<div class="">As the error indicates, the data object that goes into ft_connectivityanalysis is not according to the function’s expectations.</div>
<div class=""><br class="">
</div>
<div class="">In general, data objects need to be according to FieldTrip’s definition, and using a low-level reading function, such as edfread in your example, returns only a matrix, and not the associated metadata. If you want the data properly formatted,
 you should use ft_preprocessing.</div>
<div class=""><br class="">
</div>
<div class="">e.g.:</div>
<div class="">cfg = [];</div>
<div class="">cfg.dataset = ’s01.edf’;</div>
<div class="">data = ft_preprocessing(cfg);</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Next, if you want to compute the phase locking value (as is suggested by your call to ft_connectivityanalysis), you should first transform your epoched (!) time-domain data into the frequency domain by means of ft_freqanalysis.</div>
<div class=""><br class="">
</div>
<div class="">Note that there’s a wealth of tutorial and getting started documentation on the website:
<a href="http://www.fieldtriptoolbox.org" class="">www.fieldtriptoolbox.org</a>, which should get you started.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs Schoffelen</div>
<div class=""><br class="">
</div>
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
J.M.Schoffelen, MD PhD<br class="">
Senior Researcher, VIDI-fellow - PI, language in interaction<br class="">
Telephone: +31-24-3614793</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Physical location: room 00.028</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
</div>
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 8 Feb 2019, at 11:51, pélagie Temgoua <<a href="mailto:pelagietemgoua@yahoo.fr" class="">pelagietemgoua@yahoo.fr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="ydp96454e8fyahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:16px;">
<div class="ydp96454e8fsignature">
<div align="center" style="font-family:verdana, helvetica, sans-serif;font-size:16px;" class="">
<blockquote class="">
<div align="center" class="">
<p class="ydp36a192f1MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;">
<br class="">
</p>
</div>
</blockquote>
</div>
</div>
</div>
<div id="ydp50962920yahoo_quoted_9988417411" class="ydp50962920yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;" class="">
<div class="">
<div id="ydp50962920yiv6565784422" class="">
<div class="">
<div class="ydp50962920yiv6565784422ydpd22d416fyahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:16px;">
<div class=""><span class="">
<div class="">Good morning their all.</div>
<div class=""><br class="">
</div>
<div class="">i run ft_connectivityanalysis.m script with the following configuration :</div>
<div class="">[data, header] = edfread("s01.edf")</div>
<div class="">freq = 250</div>
<div class="">cfg = [];</div>
<div class="">cfg.method = 'plv';</div>
<div class="">stat = ft_connectivityanalysis(cfg, data)</div>
<div class=""><br class="">
</div>
<div class="">and i get the following error:</div>
<div class="">Error using ft_checkdata (line 529)</div>
<div class="">This function requires 'freqmvar', 'freq' or 'source' data as input, see ft_datatype_freq or ft_datatype_source.</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_connectivityanalysis (line 271)</div>
<div class="">data = ft_checkdata(data, 'datatype', {'freqmvar' 'freq' 'source'});</div>
<div class="">need your help please.</div>
<div class=""><br class="">
</div>
<div class="">Thank you.</div>
</span><br class="">
</div>
<div class=""><br class="">
</div>
<div class="ydp50962920yiv6565784422ydpd22d416fsignature">
<div align="center" style="font-family:verdana, helvetica, sans-serif;font-size:16px;" class="">
<blockquote class="">
<div align="center" class=""><span class="">
<div style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; margin: 0cm 0cm 0.0001pt;" class="">
<span style="font-size:8.5pt;color:rgb(255, 0, 102);" class="">Pélagie Flore TEMGOUA NANFACK</span></div>
<div style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; margin: 0cm 0cm 0.0001pt; line-height: 14.95px;" class="">
<span style="color:rgb(255, 0, 102);font-family:sans-serif;font-size:9pt;" class="">Tél : (00237) 675 39 66 33/ 696 20 51 02</span></div>
</span><br class="">
<p class="ydp50962920yiv6565784422ydp36a192f1MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;">
<b class=""><span style="font-size:12pt;" class=""><br class="">
</span></b></p>
<p class="ydp50962920yiv6565784422ydp36a192f1MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;">
<br class="">
</p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
</div>
</div>
</div>
<br class="">
</body>
</html>