Open bartkrekelberg opened 5 years ago
I'd still like to see a more genertic function that can extract any VEP based on some input parameters. That function could be useful in many future analyses...
And the loops?
I wrote a general function for extracting VEP, and also I vectorized one of the for loops. also, I uploaded Matlab_project_V3 and new extract_VEP function. Thank you
[x] Don't use bare numbers in your code. Write a generic function that extracts a component based on some settings (e.g. 'by specifying N or P and the time point (100) and some window before and after the ideal time point, the function extracts the "component".
[x] Are those for loops really necessary ? Vectorize?