Code Monkey home page Code Monkey logo

travellingwaveeeg's People

Contributors

artipago avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nian-jingqing

travellingwaveeeg's Issues

index value error

Hi

thanks for this code.

I get an error when running the "inputData" example, namely the one with [channels time trial].

The error is the following

Index in position 1 is invalid. Array indices must be positive integers or logical values.

Error in wavesHunter (line 54)
            fwValue= sbj2DFFT(-b(b2)+numberElectrodes+1,b2+ceil(length(fx)/2)+round(f1/dF));

Error in startingFunction (line 39)
        [dataInputNull(ss).logRatio(tt),dataInputNull(ss).bwValue(tt),dataInputNull(ss).bwTempFreq(tt),dataInputNull(ss).bwSpatFreq(tt),dataInputNull(ss).fwValue(tt),dataInputNull(ss).fwTempFreq(tt),dataInputNull(ss).fwSpatFreq(tt)]=wavesHunter(eegInput(ss).data(randperm(size(eegInput(ss).data,1)),:,tt),samplingRate,freqBandFlag,simmetryFlag);

And indeed for tt=31 in the inner loop, the first index

-b(b2)+numberElectrodes+1
is equal to zero.

thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.