Skip to content

Your lead-field matrix has a # of columns that does not correspond to the # of source vertices #57

@HeroDev67

Description

@HeroDev67

I am trying to run BCILAB with the following outlines given here

https://docs.google.com/document/d/1iTGj23C5uPW85g4JPDc9l5BTDuKnTvp90y2oCT5JSiY/edit?usp=sharing

As the title suggested it gives me an error while calibrating the model

“Your lead-field matrix has a # of columns that does not correspond to the # of source vertices."

I have tried to debug the problem and reached to the source of the problem

in flt_sourceLocalize.m the struct state has the fields :

state =

struct with fields:

  leadFieldMatrix: [343×3740 double]
laplacianOperator: [3740×3740 double]
        rmIndices: [1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880]
        nVertices: 3751
        nChannels: 64

The error occurs because number of columns leadFieldMatrix doesn't equal to nVertices

What should I do to make them equal ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions