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

Bug in STE_Full_fn_2 #16

Open
marvinseifert opened this issue Feb 22, 2021 · 2 comments
Open

Bug in STE_Full_fn_2 #16

marvinseifert opened this issue Feb 22, 2021 · 2 comments

Comments

@marvinseifert
Copy link
Collaborator

If STE_Full_Choise = 1 I get this error message.
Error using STE_Full_fn_2 (line 28)
Index in position 3 is invalid. Array indices must be positive integers or logical values.

Error in RF_Ident_fn_v8 (line 271)
STE_Full(:,:,:,:,i) = STE_Full_fn_2(stimulus_arr(:,:,:,i),trig_times_vec,spike_times_vec,p);
If STE_Full_Choise = 2 I get another error message

Error using STA_fn_2 (line 32)
Index in position 3 is invalid. Array indices must be positive integers or logical values.

Error in RF_Ident_fn_v8 (line 284)
STA(:,:,:,i)

@marvinseifert
Copy link
Collaborator Author

Index in position 3 is invalid. Array indices must be positive integers or logical values.

Error in STA_fn_2 (line 32)
STA_loop_arr = stimulus_arr(:,:,STE.STE_index_unique_arr(i)-p.Num_STE_bins:STE.STE_index_unique_arr(i)-1);

Error in RF_Ident_fn_v8 (line 284)
STA(:,:,:,i) = STA_fn_2(stimulus_arr(:,:,:,i),p,STE,p.mean_raw_stim_arr(:,:,:,i));

@marvinseifert
Copy link
Collaborator Author

STA_fn_2 line 32:
STA_loop_arr = stimulus_arr(:,:,STE.STE_index_unique_arr(i)-p.Num_STE_bins:STE.STE_index_unique_arr(i)-1);

STE.STE_index_unique_arr saves something, the number of STE_bins gets substracted. This can be 0 which causes the script to chrash

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

1 participant