Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, for and parfor loops do not support negative increments. However, unspecified negative increments (e.g., 7:1) are treated as positive increments which results in surprising behavior (unexpected because not consistent seq). This tasks covers two improvements: In a first step, we need to improve error handling of for and parfor loops. In a second step, we should also add support for negative increments by consolidating the functionality with the seq builtin function.