Cannot create variable 'e1' in workspace
Error in Untitledpsowind (line 34)
current_fitness(i) = simulPID(current_position(:,i));
Caused by:
Error using Untitledpsowind>simulPID (line 143)
Attempt to add "e1" to a static workspace .
See Variables in Nested and Anonymous Functions.