I was working in my branch. Then, I switched to another branch without closing matlab. I deleted the slprj folder and I run clear command, but even doing so some variables were not updated, and previous values were kept instead.
Interestingly, this problem affected not only global or persistent variables, but also a matlab structure, sm, that is defined in the Yoga initialization file. In fact, I got an error while compiling the Simulink model because a function was looking for a field in sm that does not exist in the previous branch.
I was working in my branch. Then, I switched to another branch without closing matlab. I deleted the
slprj
folder and I runclear
command, but even doing so some variables were not updated, and previous values were kept instead.Interestingly, this problem affected not only
global
orpersistent
variables, but also a matlab structure,sm
, that is defined in the Yoga initialization file. In fact, I got an error while compiling the Simulink model because a function was looking for a field insm
that does not exist in the previous branch.Furthermore, the problem is reproducible.