-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Describe the bug
The new Matlab version 2025b has changed how it interprets the : operator.
When loading for example a file from 2017 it stopes in line 445 (openNev.m):
tempApp(find(tempApp == 0):end) = []; --> find(tempApp ==0) is [25 26 27 28 29 30 31 32]. length of tempApp is 32.
error message:
Error using :
Colon operands must be real scalars.
Error in openNEV (line 445)
tempApp(find(tempApp == 0):end) = [];
^
The issue is that in previous versions it allowed to use the : with an array of values, but now it only allows real scalars. So in previous version it took the values 25:end as a range.
Expected behavior
The function needs to be adjusted to return only one integer value instead of an array, for example by using find(temApp == 0, 1, 'first').
