sharedCodeUpdate
Add new shared code source files to existing shared code folder
Syntax
Description
sharedCodeUpdate(
copies, for example, shared utility files from sourceFolder
, destinationFolder
)sourceFolder
to a
subfolder in destinationFolder
provided that the files do not exist
within destinationFolder
. The function:
Identifies files in both folders that have identical names but different content. The function does not overwrite these files in
destinationFolder
. In the Command Window, you see acompare
link for each file. To examine differences by using the Comparison tool, click the link.Lists
sourceFolder
files that the function intends to copy and seeks confirmation. When you provide confirmation, the function copies the files todestinationFolder
. By default, the destination of the copied files is a subfolder that corresponds to the release in which the files were created.
sharedCodeUpdate(
copies files to the subfolder that you specify.sourceFolder
, destinationFolder
,
'ExistingCodeSubfolder', destinationSubfolder
)
sharedCodeUpdate(
copies shared code source files from the shared code location associated with
buildFolder
, destinationFolder
)buildFolder
.
sharedCodeUpdate(
copies shared code source files to the folder specified by the
buildFolder
, configurationSetOrModel
)'ExistingSharedCode'
parameter of a Simulink® configuration set or model.
sharedCodeUpdate(
copies shared utility files for the protected model to the shared code folder.protectedModel
, destinationFolder
)
Examples
Input Arguments
Version History
Introduced in R2016b