Upgradeadvisor under Matlab R2022b saves backups though SaveBackupOnVersionUpgrade = 0
Show older comments
Hi,
I´m using Matlab R2022b and need to upgrade all my data saved under Matlab R2018b. The function slupdate has been removed und upgradeadvisor should be used instead.
In order to avoid saving backups of all my data I have unchecked the Simulink Preferences manually (see attached screenshot) and thought the command line as follows:
autoSaveOptions = get_param(0, 'AutoSaveOptions');
autoSaveOptions.SaveBackupOnVersionUpgrade=0;
set_param(0,'AutoSaveOptions',autoSaveOptions);
When upgrading via GUI, no backup is saved. But when upgrading via command line, backups are generated and I get the message below.
upgrader=upgradeadvisor(XXX.mdl);
upgrader.upgrade;
"A copy of the original file "XXX.mdl" has been created because it was last saved in an earlier version of Simulink. (...) You can turn this feature off using the Simulink Preferences", which is already OFF (!)
I would be thankful for any help.
Kind regards, Natalia
1 Comment
Govind KM
on 10 Oct 2024
The ability to turn off backup file generation for upgradeadvisor has been added in R2023b:
Answers (0)
Categories
Find more on Vehicle Dynamics Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!