EEGLAB error in function spectcomp() at line 941 解决方案

  1. 这个错误提示下面有说是因为pwelch()函数未定义’double’类型的数据
  2. 所以就打开了spectopo.m(因为我实在是找不到toolbox-functions路径下叫做spectcomp()的函数了)
  3. 打开之后查看941行,长这样:
    if usepwelch
    [tmpspec,freqs] = pwelch(matsel(tmpdata,frames,0,1,e),…
    确实有pwelch函数。
  4. 我的想法是要不打开pwelch改下,然后在滑代码的过程中看到了这个:
    % spectopo() - Plot the power spectral density (PSD) of winsize length segments of data
    % epochs at all channels as a bundle of traces. At specified frequencies,
    % plot the relative topographic distribution of PSD. If available, uses
    % pwelch() from the Matlab signal processing toolbox, else the EEGLAB spec()
    % function. Plots the mean spectrum for all of the supplied data, not just
    % the pre-stimulus baseline.
    也就是说有个优先顺序的。。
    那就姑且装一个signal processing toolbox试试,登录MathWorks账户安装就可以,然后重试ok了。处理信号的工具包不接受double类型的数据确实说不过去。Way to go!
  5. 当然肯定把double类型转换成其他的数据类型应该也是ok的。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值