Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running error #1

Open
jiadong324 opened this issue Aug 15, 2019 · 1 comment
Open

Running error #1

jiadong324 opened this issue Aug 15, 2019 · 1 comment

Comments

@jiadong324
Copy link

Dear author,

I am trying to use the tool, but it shows the error:

Error in SELFISH_DCI (line 110)
H1 = H1(H1(:,1)>=INTERVAL(1)&H1(:,1)<=INTERVAL(2)&H1(:,2)>=INTERVAL(1)&H1(:,2)<=INTERVAL(2),:);

I go through the code and found variable INTERVAL is assigned at the start, which only contains a single value.

INTERVAL = ceil(INTERVAL/RESOLUTION);

But at line 110, you try to access INTERVAL with INTERVAL(2)

H1 = H1(H1(:,1)>=INTERVAL(1)&H1(:,1)<=INTERVAL(2)&H1(:,2)>=INTERVAL(1)&H1(:,2)<=INTERVAL(2),:);

Looking forward to your feedback, thanks!

@roayaei
Copy link
Collaborator

roayaei commented Aug 15, 2019

Hi. You have to pass an interval to the function not a number. For example [1 5000000].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants