MIN1PIPE icon indicating copy to clipboard operation
MIN1PIPE copied to clipboard

Error: 'Array indices must be positive integers or logical values.'

Open cpernici opened this issue 4 years ago • 5 comments

Hi,

I get the following error when I try to open videos I recorded from Miniscope V4:

Array indices must be positive integers or logical values.

Error in data_info (line 20) ids = ids(end);

Error in min1pipe (line 68) [path_name, file_base, file_fmt] = data_info;

Error in run (line 91) evalin('caller', strcat(script, ';'));

Not sure what is going on...

cpernici avatar Jun 24 '21 18:06 cpernici

Not sure what is going on either.

It seems at least you are not using the latest version based on what is on line 20 of data_info.m.

JinghaoLu avatar Jun 24 '21 18:06 JinghaoLu

Hi, I am encountering the same error. I am using .avi video (ffv1 output of UCLA miniscope V4). I also converted it to grey but I am still getting the same error. I would appreciate any suggestion.

zz-rezaei avatar Aug 03 '21 21:08 zz-rezaei

Hi @zz-rezaei it seems you are not using the uncompressed output format directly from the miniscope? Then a quick solution might be that you use whatever way (perhaps matlab built-in VideoReader) to load the video into matlab, save it as a .mat file (you can refer to the Readme file of MIN1PIPE) and then run MIN1PIPE using the .mat file you just created. For later data acquisitions you may want to use uncompressed output video format so that MIN1PIPE can handle.

JinghaoLu avatar Aug 04 '21 15:08 JinghaoLu

Thank you Jinghao! Before running MIN1PIPE using .mat file, I used the uncompressed output format directly from the miniscope (GREY format) as you suggested, and it worked.

zz-rezaei avatar Aug 05 '21 14:08 zz-rezaei

@zz-rezaei Sounds great!

JinghaoLu avatar Aug 05 '21 15:08 JinghaoLu