To reproduce this bug, perform the following steps:
open matlab
navigate to the demos folder
change the value of params.U_Dim to 1
execute the highschool_predict.m file
wait for the result to show on screen
without closing matlab, execute the highschool_predict.m file again
Observe a change in the result
The above steps indicate to me that running the function doesn't reset the arrays before running the algorithm. This might lead to unwanted consequences.
To reproduce this bug, perform the following steps: