Open Aleman-Z opened 3 years ago
It can't be done for moving_window_ripples_power because the array wouldn't be split equally. We find the first occurrence of a positive event and then keep finding boundaries till conditions are met. In cases like these parfor wouldn't be suitable
I've changed the while to parfor in threshold_powe
For some while loops used it can be known in advance when they will break, so could be replaced with for loops which have the advantage of possibly being replaced by parfors to speed up the computation.