robotology-legacy / WBI-Toolbox-controllers

[WARNING]: this repository is no more mantained. Please refer to https://github.com/robotology/whole-body-controllers.
4 stars 4 forks source link

WARNING: matlab does not change some variables after switching branches #45

Closed gabrielenava closed 7 years ago

gabrielenava commented 7 years ago

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.

Furthermore, the problem is reproducible.