The batch option uses aas_getTaskDuration, which uses an matlab class and function of the parallel.internal namespace. It looks like the function has changed (in R2021b or earlier), and it now gives an error. Proposed Do not use the method from the parallel.internal class. Even, do not use the parallel.internal class at all then, since it was only introduced for this specific method only.
#254 (comment)
The batch option uses aas_getTaskDuration, which uses an matlab class and function of the parallel.internal namespace. It looks like the function has changed (in R2021b or earlier), and it now gives an error. Proposed Do not use the method from the parallel.internal class. Even, do not use the parallel.internal class at all then, since it was only introduced for this specific method only.
#254 (comment)