Dear @Francois,
Thanks for the reply, I think the not restarting MATLAB might be the real problem, thanks for clarifying!