Update custom System object to latest syntax
sysobjupdate opens the System object™ in the MATLAB® Editor and applies syntax changes without saving.
sysobjupdate opens any System object or objects found in the folder that need updating. The affected objects are
opened in the Editor and syntax changes are applied without saving.
sysobjupdate opens the System object or objects associated with the package in the editor and applies syntax
changes without saving.
sysobjupdate ___ -inplace updates and saves syntax
object. No files are opened in the editor, but backup copies
of the System object files are created with the suffix
_orig.m. This syntax can
be used with any of the previous arguments.
sysobjupdate ___ -inplace -nobackup performs the
updates to the System object in place, but does not create backup copies of the System object files.
sysobjupdate ___ -diff updates like the
-inplace update argument, but also opens the
visdiff tool to compare the changed files.
sysobjupdate ___ -actions
applies only the syntax updates listed as
sysobjupdate -listactions lists all possible actions available for
Update a System object
System object. If any changes are needed,
AddOne is opened in the MATLAB
Editor with the changes applied but not saved.
Update All System Objects In Place
Update all the System objects in the folder
reference without opening all the objects in MATLAB. After running,
sysobjupdate lists the objects that needed syntax updates.
sysobjupdate C:\Files\reference -inplace
Updated System objects: digitalDelay analogDelay
Update System object File with Version Control Commands
System object in place and also handle the
git version control for the
Counter.m file. An
info structure is returned with
the System objects that were updated and with any warning messages resulting from those
info = sysobjupdate('Counter','-inplace','-pre',... 'git add','-post','git commit')
info = struct with fields: Class: 'Counter' Messages: [0×1 string]
object — Object to update
System object name | System object file name
System object or objects to update to the newest System object authoring syntax. The object or folder must be on the MATLAB path.
folder — Folder of objects to update
full path to folder
Folder of System objects to update to the newest System object authoring syntax. The folder must be on the MATLAB path.
package — System object package to update
System object package name | full path to folder
System object package to update to the newest System object authoring syntax. The package or folder must be on the MATLAB path.
command — Command to run
full path to a command
Use this option when you need to run a command before or after updating the System object file.
Running a command is useful when you want to update all your System objects in place
-inplace command, but you also need to run version control
commands to save the changes to the object.
actionKey — Update action to perform
Keyword for the
-action option. Use
-listactions to list all possible action keywords.
info — Updated files and warnings
A structure of updated files and any warnings encountered for each file during the update.