Forum

Error When use segm...
 
Notifications
Clear all

Error When use segment snirf file

3 Posts
3 Users
0 Likes
86 Views
Posts: 1
Topic starter
(@yiyi)
New Member
Joined: 2 months ago

Dear Community,

I hope this message finds you well. I am attempting to segment SNIRF files for further analysis, but I keep running into an "Array Index Out of Bounds" error that I cannot diagnose.

Here's the error message I receive:

Error using snirfSegment (line 69)
Index in position 2 is out of bounds.

Error in MainGUI>menuItemSegmentSnirf_Callback (line 1866)
snirfSegment();

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in MainGUI (line 21)
gui_mainfcn(gui_State, varargin{:});

2 Replies
Posts: 4
(@martinez_sarai)
Active Member
Joined: 2 months ago

Hi Wencheng,

 

It is probably because inthe second index you have entered a value that is not within the time values ​​of your file. That is, if your file, for example, goes from 0 seconds to 100, it is likely that you entered a value outside that range.

Regards,

 

Sarai

Reply
1 Reply
(@erh-uo)
Joined: 2 months ago

Active Member
Posts: 3

@martinez_sarai 

Hi Sarai

I have the samilar problem when i use segment files. But the value i entered was not out the time values of my file, so i am very confused.Can you give me some suggestions?

Here's the error message I receive:

Index in position 1 exceeds array bounds. Index must not exceed 1.

Error in hmrNirsFileSegment (line 67)
t = t_all(round(fsn(P,1)*fs):round(fsn(P,2)*fs),:);

Error in EasyNIRS>menuSegmentNIRSFile_Callback (line 2007)
hmrNirsFileSegment();

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in EasyNIRS (line 16)
gui_mainfcn(gui_State, varargin{:});

Thanks

Reply
Share:
en_USEnglish