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

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

Open
cpernici opened this issue Jun 24, 2021 · 5 comments
Open

Comments

@cpernici
Copy link

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...

@JinghaoLu
Copy link
Owner

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.

@zz-rezaei
Copy link

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.

@JinghaoLu
Copy link
Owner

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.

@zz-rezaei
Copy link

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.

@JinghaoLu
Copy link
Owner

@zz-rezaei Sounds great!

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

3 participants