Upgradeadvisor under Matlab R2022b saves backups though SaveBackup​OnVersionU​pgrade = 0

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

Answers (0)

Categories

Find more on Vehicle Dynamics Blockset in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 17 Mar 2023

Commented:

on 10 Oct 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!