<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div>Hi All,</div>
<div><br>
</div>
<div>I am trying to apply wavelet on my signal to see HFOs. </div>
<div>According to <a href="http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis" class="OWAAutoLink" id="LPlnk121702">http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis</a> </div>
<div>I wrote the following lines but I will get an error that: "<span>the padding that you specified is shorter than the data</span>".</div>
<div>As far as I understood <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">'maxperlen' is the default.</span></div>
<div>Any other idea for padding or solving this problem?</div>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table cellspacing="0" style="width: 90%; position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top-width: 1px; border-top-style: dotted; border-top-color: rgb(200, 200, 200); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(200, 200, 200); background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div style="height: 150px; position: relative; margin: auto; display: table; width: 150px; background-color: rgb(255, 255, 255);">
<a href="http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis" style="display: table-cell; text-align: center;"><img style="display: inline-block; max-width: 250px; max-height: 250px; height: 150px; width: 150px; border-width: 0px; vertical-align: bottom;" width="150" height="150" src="https://www.bing.com/th?id=OVP.V249f2fff057aa7a9c87ce8b67ec6c972&pid=Api"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div><a class="ms-Icon--x ms-icon-font-size-14" style="font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-weight: normal; position: relative; cursor: pointer; padding: 8px; float: right; color: rgb(102, 102, 102); -webkit-user-select: none; margin-left: 10px; background-color: rgb(239, 246, 252);"></a></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a href="http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis" style="text-decoration: none;">tutorial:timefrequencyanalysis – FieldTrip</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.fieldtriptoolbox.org</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div><br>
</div>
<div>cfg= [];</div>
<div>cfg.pad = 'maxperlen';</div>
<div>cfg.method = 'wavelet';</div>
<div>cfg.output = 'pow';</div>
<div>cfg.channel = 'chan 4';</div>
<div>cfg.toi = 1:size(eeg.eeg_data,2);</div>
<div>cfg.foilim = [80 500];</div>
<div>[freq] = ft_freqanalysis(cfg, data1);</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p>data1 is my data which I get by applying ft_preprocessing.</p>
<p>_________________________________________________</p>
<div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="font-family:Tahoma; font-size:13px"><i><b>Bahar</b></i></p>
<p style="font-family:Tahoma; font-size:13px"><i></i></p>
</div>
</div>
</div>
</body>
</html>